From: Shraddha Barke <shraddha.6596@gmail.com>
Date: Sat, 5 Sep 2015 13:28:28 +0000 (+0530)
Subject: Staging: rtl8192e: rtl_wx.c: Remove braces for single statement blocks
X-Git-Tag: firefly_0821_release~176^2~802^2~2123
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e1b32e1e89ee69fd62e6d3bd781d017748889e00;p=firefly-linux-kernel-4.4.55.git

Staging: rtl8192e: rtl_wx.c: Remove braces for single statement blocks

The linux kernel coding style discourages use of braces for single
statement blocks. This patch removes the unnecessary braces.

The warning was detected using checkpatch.pl. Coccinelle was used to
make the change.

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---

diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_wx.c b/drivers/staging/rtl8192e/rtl8192e/rtl_wx.c
index 7e3ca7ef997b..7e5613774a52 100644
--- a/drivers/staging/rtl8192e/rtl8192e/rtl_wx.c
+++ b/drivers/staging/rtl8192e/rtl8192e/rtl_wx.c
@@ -334,10 +334,9 @@ static int rtl8192_wx_get_range(struct net_device *dev,
 	/* ~130 Mb/s real (802.11n) */
 	range->throughput = 130 * 1000 * 1000;
 
-	if (priv->rf_set_sens != NULL) {
+	if (priv->rf_set_sens != NULL)
 		/* signal level threshold range */
 		range->sensitivity = priv->max_sens;
-	}
 
 	range->max_qual.qual = 100;
 	range->max_qual.level = 0;