Commit 7ccbc42a authored by Puranjay Mohan's avatar Puranjay Mohan Committed by Greg Kroah-Hartman

Staging: rtl8188eu: core: Remove else after break

Remove else after break statements to fix following checkpatch.pl
warnings:
WARNING: else is not generally useful after a break or return.
Signed-off-by: default avatarPuranjay Mohan <puranjay12@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d0222e9a
...@@ -1330,12 +1330,11 @@ void _rtw_join_timeout_handler (struct timer_list *t) ...@@ -1330,12 +1330,11 @@ void _rtw_join_timeout_handler (struct timer_list *t)
continue; continue;
} }
break; break;
} else { }
DBG_88E("%s We've try roaming but fail\n", __func__); DBG_88E("%s We've try roaming but fail\n", __func__);
rtw_indicate_disconnect(adapter); rtw_indicate_disconnect(adapter);
break; break;
} }
}
} else { } else {
rtw_indicate_disconnect(adapter); rtw_indicate_disconnect(adapter);
free_scanqueue(pmlmepriv);/* */ free_scanqueue(pmlmepriv);/* */
...@@ -2058,7 +2057,7 @@ void _rtw_roaming(struct adapter *padapter, struct wlan_network *tgt_network) ...@@ -2058,7 +2057,7 @@ void _rtw_roaming(struct adapter *padapter, struct wlan_network *tgt_network)
do_join_r = rtw_do_join(padapter); do_join_r = rtw_do_join(padapter);
if (do_join_r == _SUCCESS) { if (do_join_r == _SUCCESS) {
break; break;
} else { }
DBG_88E("roaming do_join return %d\n", do_join_r); DBG_88E("roaming do_join return %d\n", do_join_r);
pmlmepriv->to_roaming--; pmlmepriv->to_roaming--;
...@@ -2071,5 +2070,4 @@ void _rtw_roaming(struct adapter *padapter, struct wlan_network *tgt_network) ...@@ -2071,5 +2070,4 @@ void _rtw_roaming(struct adapter *padapter, struct wlan_network *tgt_network)
} }
} }
} }
}
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment