Staging: rtl8192ee: Fix else not useful style warning
authorMahati Chamarthy <mahati.chamarthy@gmail.com>
Fri, 19 Sep 2014 23:19:43 +0000 (04:49 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Sep 2014 00:15:15 +0000 (17:15 -0700)
This fixes the following checkpatch.pl warnings:
WARNING: else is not generally useful after a break or return

Signed-off-by: Mahati Chamarthy <mahati.chamarthy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192ee/ps.c

index 1a547b3..4529e80 100644 (file)
@@ -734,9 +734,8 @@ static void rtl_p2p_noa_ie(struct ieee80211_hw *hw, void *data,
                                         "P2P notice of absence: invalid length%d\n",
                                         noa_len);
                                return;
-                       } else {
-                               noa_num = (noa_len - 2) / 13;
                        }
+                       noa_num = (noa_len - 2) / 13;
                        noa_index = ie[3];
                        if (rtlpriv->psc.p2p_ps_info.p2p_ps_mode ==
                            P2P_PS_NONE || noa_index != p2pinfo->noa_index) {
@@ -831,9 +830,8 @@ static void rtl_p2p_action_ie(struct ieee80211_hw *hw, void *data,
                                         "P2P notice of absence: invalid length%d\n",
                                         noa_len);
                                return;
-                       } else {
-                               noa_num = (noa_len - 2) / 13;
                        }
+                       noa_num = (noa_len - 2) / 13;
                        noa_index = ie[3];
                        if (rtlpriv->psc.p2p_ps_info.p2p_ps_mode ==
                            P2P_PS_NONE ||