[PATCH 01/14] mmc: bcm2835: Fix checkpatch.pl warning

Stefan Wahren stefan.wahren at i2se.com
Sat Jan 7 04:51:01 PST 2017


This fixes a checkpatch.pl warning about unnecessary braces.

Signed-off-by: Stefan Wahren <stefan.wahren at i2se.com>
---
 drivers/mmc/host/bcm2835.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/mmc/host/bcm2835.c b/drivers/mmc/host/bcm2835.c
index 80f7428..fbf3c14 100644
--- a/drivers/mmc/host/bcm2835.c
+++ b/drivers/mmc/host/bcm2835.c
@@ -458,11 +458,10 @@ static void bcm2835_transfer_block_pio(struct bcm2835_host *host,
 			copy_words -= words;
 
 			while (words) {
-				if (is_read) {
+				if (is_read)
 					*(buf++) = readl(host->ioaddr + SDDATA);
-				} else {
+				else
 					writel(*(buf++), host->ioaddr + SDDATA);
-				}
 				words--;
 			}
 		}
-- 
1.7.9.5




More information about the linux-rpi-kernel mailing list