mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 20:14:06 +02:00
auxdisplay: arm-charlcd: Remove redundant ternary operators
For ternary operators in the form of a ? true : false, if a itself returns a boolean result, the ternary operator can be omitted. Remove redundant ternary operators to clean up the code. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
This commit is contained in:
parent
548d6800fa
commit
c18bde8570
|
|
@ -157,7 +157,8 @@ static bool charlcd_4bit_read_bf(struct charlcd *lcd)
|
|||
writel(0x01, lcd->virtbase + CHAR_MASK);
|
||||
}
|
||||
readl(lcd->virtbase + CHAR_COM);
|
||||
return charlcd_4bit_read_char(lcd) & HD_BUSY_FLAG ? true : false;
|
||||
|
||||
return charlcd_4bit_read_char(lcd) & HD_BUSY_FLAG;
|
||||
}
|
||||
|
||||
static void charlcd_4bit_wait_busy(struct charlcd *lcd)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user