diff options
author | Mahati Chamarthy <mahati.chamarthy@gmail.com> | 2014-09-20 01:19:43 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-20 02:15:15 +0200 |
commit | b9209a93edbccafb6c2f860bc0ddfe9eda1e3ccd (patch) | |
tree | 8874c64f16332b4bbfe1aa478c70fb93604b3324 | |
parent | Staging: rtl8192ee: Fix break is not useful warning (diff) | |
download | linux-b9209a93edbccafb6c2f860bc0ddfe9eda1e3ccd.tar.xz linux-b9209a93edbccafb6c2f860bc0ddfe9eda1e3ccd.zip |
Staging: rtl8192ee: Fix else not useful style warning
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>
-rw-r--r-- | drivers/staging/rtl8192ee/ps.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/staging/rtl8192ee/ps.c b/drivers/staging/rtl8192ee/ps.c index 1a547b31321a..4529e8014739 100644 --- a/drivers/staging/rtl8192ee/ps.c +++ b/drivers/staging/rtl8192ee/ps.c @@ -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 || |