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>
"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) {
"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 ||