: staging: Greybus: Remove unnecessary braces for single statement block
Subsystems (3)
PATCH v2 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
Fixed indentation error, noted by Dan Carpenter
--- drivers/staging/greybus/sdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/greybus/sdio.c +1 -1
@@ -192,7 +192,7 @@ static int _gb_sdio_process_events(struct gb_sdio_host *host, u8 event) }if (event &GB_SDIO_WP ) - host->read_only = true; + host->read_only = true;if (state_changed) { dev_info(mmc_dev(host->mmc), "card %s now event\n",
Signature · 1 line
2.10.2
Johan Hovold
maintainerQuoted 15 lines · Rahul Krishnan
This patch fixes the following checkpath.pl warning
WARNING: braces {} are not necessary for single statement blocksFixed indentation error, noted by Dan Carpenter
Signed-off-by Rahul Krishnan <[email protected]>--- drivers/staging/greybus/sdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)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 5 lines
drivers/staging/greybus/sdio.c +1
-1@@ -192,7 +192,7 @@ static int _gb_sdio_process_events(struct gb_sdio_host *host, u8 event) }if (event &GB_SDIO_WP ) - host->read_only = true; + host->read_only = true;
You need to redo your original patch. This one instead looks like a follow-up to your first revision (which actually removed the braces).
drivers/staging/greybus/sdio.c static int _gb_sdio_process_events(struct gb_sdio_host *host, u8 event) · line 198
Quoted 3 lines
drivers/staging/greybus/sdio.c +0
-0if (state_changed) { dev_info(mmc_dev(host->mmc), "card %s now event\n",
Thanks,
Johan