serial_s3c24x0: Add missing brackets.
PATCH 1/1 serial_s3c24x0: Add missing brackets.
Fucntion s3c24x0_serial_flush() could behave wrong because of missing brackets. Correct condition logic. Problem found by sparse.
Signed-off-by Marek Belisko <[email protected]>
--- drivers/serial/serial_s3c24x0.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/serial/serial_s3c24x0.c +1 -1
@@ -113,7 +113,7 @@ static void s3c24x0_serial_flush(struct console_device *cdev) {struct device_d *dev = cdev->dev; -while (!readb (dev->map_base +UTRSTAT ) &0x4 ) +while (!(readb (dev->map_base +UTRSTAT ) &0x4 )) ; }
Signature · 7 lines
1.7.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox