staging: Greybus: Remove unnecessary braces for single statement block
authorRahul Krishnan <mrahul.krishnan@gmail.com>
Fri, 18 Nov 2016 15:15:25 +0000 (20:45 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 19 Nov 2016 13:23:09 +0000 (14:23 +0100)
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>
Reviewed-by: Rui Miguel Silva <rmfrfs@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/greybus/sdio.c

index 5649ef1..66b37ea 100644 (file)
@@ -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",