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 5649ef1e379d14c31e120cfb49f00eba7ab77404..66b37ea29ef0641085bebe59c81ac9ed6e6ec3bb 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",