diff --git a/drivers/staging/rtl8192ee/ps.c b/drivers/staging/rtl8192ee/ps.c index 1a547b31321a815afad884b7a353be42d483a2c0..4529e80147398653701630f226f159d2513fc750 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 ||