: staging: Greybus: Remove unnecessary braces for single statement block
Subsystems (3)
PATCH 1/1 : staging: Greybus: Remove unnecessary braces for single statement block
This patch fixes the following checkpath.pl warning
WARNING: braces {} are not necessary for single statement blocks
Signed-off-by Rahul Krishnan <[email protected]>
--- drivers/staging/greybus/sdio.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/staging/greybus/sdio.c +2 -3
@@ -191,9 +191,8 @@ static int _gb_sdio_process_events(struct gb_sdio_host *host, u8 event) state_changed =1 ; } -if (event &GB_SDIO_WP ) { - host->read_only = true; - } +if (event &GB_SDIO_WP ) + host->read_only = true;if (state_changed) { dev_info(mmc_dev(host->mmc), "card %s now event\n",
Signature · 1 line
2.10.2
Quoted 13 lines · Rahul Krishnan
This patch fixes the following checkpath.pl warning
WARNING: braces {} are not necessary for single statement blocksSigned-off-by Rahul Krishnan <[email protected]>--- drivers/staging/greybus/sdio.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)drivers/staging/greybus/sdio.c +0
-0
drivers/staging/greybus/sdio.c static int _gb_sdio_process_events(struct gb_sdio_host *host, u8 event) · line 195
Quoted 8 lines
drivers/staging/greybus/sdio.c +2
-3@@ -191,9 +191,8 @@ static int _gb_sdio_process_events(struct gb_sdio_host *host, u8 event) state_changed =1 ; } -if (event &GB_SDIO_WP ) { - host->read_only = true; - } +if (event &GB_SDIO_WP ) + host->read_only = true;
The indenting is messed up.
regards,
dan carpenter