staging: rtl8188eu: wrap a long if condition and remove extra parenthesis
authorJakub Sitnicki <jsitnicki@gmail.com>
Wed, 29 Jul 2015 08:15:16 +0000 (10:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 Jul 2015 23:05:40 +0000 (16:05 -0700)
Signed-off-by: Jakub Sitnicki <jsitnicki@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/os_dep/ioctl_linux.c

index 554c04d56fd36987b38e45713cb7878e0408b13a..844ed6f3263a445f03be19b4effc85c0643c6aa3 100644 (file)
@@ -2666,7 +2666,8 @@ static int rtw_get_sta_wpaie(struct net_device *dev, struct ieee_param *param)
 
        psta = rtw_get_stainfo(pstapriv, param->sta_addr);
        if (psta) {
-               if ((psta->wpa_ie[0] == WLAN_EID_RSN) || (psta->wpa_ie[0] == WLAN_EID_VENDOR_SPECIFIC)) {
+               if (psta->wpa_ie[0] == WLAN_EID_RSN ||
+                   psta->wpa_ie[0] == WLAN_EID_VENDOR_SPECIFIC) {
                        int wpa_ie_len;
                        int copy_len;