From: Rahul Krishnan Date: Fri, 18 Nov 2016 15:15:25 +0000 (+0530) Subject: staging: Greybus: Remove unnecessary braces for single statement block X-Git-Tag: v4.10-rc1~148^2~162 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=db1a4194c84d56a43d17d7f99f04feef311e7a32;p=karo-tx-linux.git 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 Reviewed-by: Rui Miguel Silva Signed-off-by: Greg Kroah-Hartman --- 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",