aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/sdio.c
diff options
context:
space:
mode:
authorRahul Krishnan <mrahul.krishnan@gmail.com>2016-11-18 20:45:25 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-11-19 14:23:09 +0100
commitdb1a4194c84d56a43d17d7f99f04feef311e7a32 (patch)
treea755b79c4a083992263309666f143ddc88a1b0a9 /drivers/staging/greybus/sdio.c
parentstaging: dgnc: dgnc_driver.h Spelling correction (diff)
downloadlinux-dev-db1a4194c84d56a43d17d7f99f04feef311e7a32.tar.xz
linux-dev-db1a4194c84d56a43d17d7f99f04feef311e7a32.zip
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 <mrahul.krishnan@gmail.com> Reviewed-by: Rui Miguel Silva <rmfrfs@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/greybus/sdio.c')
-rw-r--r--drivers/staging/greybus/sdio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/greybus/sdio.c b/drivers/staging/greybus/sdio.c
index 5649ef1e379d..66b37ea29ef0 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",