linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH]: staging: Greybus: Remove unnecessary braces for single statement block
@ 2016-11-15 13:24 Rahul Krishnan
  2016-11-15 13:26 ` Dan Carpenter
  0 siblings, 1 reply; 5+ messages in thread
From: Rahul Krishnan @ 2016-11-15 13:24 UTC (permalink / raw)
  To: rmfrfs; +Cc: elder, johan, gregkh, devel, linux-kernel

This patch fixes the following checkpath.pl warning
WARNING: braces {} are not necessary for single statement blocks

Signed-off-by: Rahul Krishnan <mrahul.krishnan@gmail.com>
---
 drivers/staging/greybus/sdio.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/greybus/sdio.c b/drivers/staging/greybus/sdio.c
index 5649ef1..f60b458 100644
--- a/drivers/staging/greybus/sdio.c
+++ b/drivers/staging/greybus/sdio.c
@@ -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",
-- 
2.10.2

^ permalink raw reply related	[flat|nested] 5+ messages in thread
* [PATCH]: staging: Greybus: Remove unnecessary braces for single statement block
@ 2016-11-18 15:15 Rahul Krishnan
  2016-11-18 15:30 ` Rui Miguel Silva
  2016-11-21  4:08 ` Viresh Kumar
  0 siblings, 2 replies; 5+ messages in thread
From: Rahul Krishnan @ 2016-11-18 15:15 UTC (permalink / raw)
  To: rmfrfs; +Cc: elder, johan, gregkh, devel, linux-kernel

This patch fixes the following checkpath.pl warning
WARNING: braces {} are not necessary for single statement blocks


Signed-off-by: Rahul Krishnan <mrahul.krishnan@gmail.com>
---
 drivers/staging/greybus/sdio.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/staging/greybus/sdio.c b/drivers/staging/greybus/sdio.c
index 5649ef1..66b37ea 100644
--- a/drivers/staging/greybus/sdio.c
+++ b/drivers/staging/greybus/sdio.c
@@ -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) {
+	if (event & GB_SDIO_WP)
 		host->read_only = true;
-	}
 
 	if (state_changed) {
 		dev_info(mmc_dev(host->mmc), "card %s now event\n",
-- 
2.10.2

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-11-21  4:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-15 13:24 [PATCH]: staging: Greybus: Remove unnecessary braces for single statement block Rahul Krishnan
2016-11-15 13:26 ` Dan Carpenter
  -- strict thread matches above, loose matches on Subject: below --
2016-11-18 15:15 Rahul Krishnan
2016-11-18 15:30 ` Rui Miguel Silva
2016-11-21  4:08 ` Viresh Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).