diff options
author | Nicholas Mc Guire <hofrat@osadl.org> | 2015-02-04 06:04:38 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-02-07 04:37:52 -0500 |
commit | e971e8de383f91c418c924afd349766f33b20501 (patch) | |
tree | ceb1df6ade4583d04a1834085a78208152b2416b | |
parent | e914024d46e3de3c5c3ce9c5b77b564ad6a264c0 (diff) |
staging: rtl8188eu: core: switch with redundant cases
A few redundant switch cases as well as a redundant if/else
within one of the cases was consolidated to a single call.
The cases are intentionally retained for documentation purposes.
case WIFI_REASSOCREQ,WIFI_PROBEREQ,WIFI_BEACON,WIFI_ACTION all
have the same effect - notably the also for WIFI_PROBEREQ where
the if/else is executing the same function.
These redundant cases could all be dropped and consolidated into
the default but probably it is better for documentation/readability
to leave them in the switch/case explicitly.
Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c b/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c index 28918201fcd7..cd12dd70dd88 100644 --- a/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c +++ b/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | |||
@@ -484,17 +484,8 @@ void mgt_dispatcher(struct adapter *padapter, struct recv_frame *precv_frame) | |||
484 | /* fall through */ | 484 | /* fall through */ |
485 | case WIFI_ASSOCREQ: | 485 | case WIFI_ASSOCREQ: |
486 | case WIFI_REASSOCREQ: | 486 | case WIFI_REASSOCREQ: |
487 | _mgt_dispatcher(padapter, ptable, precv_frame); | ||
488 | break; | ||
489 | case WIFI_PROBEREQ: | 487 | case WIFI_PROBEREQ: |
490 | if (check_fwstate(pmlmepriv, WIFI_AP_STATE)) | ||
491 | _mgt_dispatcher(padapter, ptable, precv_frame); | ||
492 | else | ||
493 | _mgt_dispatcher(padapter, ptable, precv_frame); | ||
494 | break; | ||
495 | case WIFI_BEACON: | 488 | case WIFI_BEACON: |
496 | _mgt_dispatcher(padapter, ptable, precv_frame); | ||
497 | break; | ||
498 | case WIFI_ACTION: | 489 | case WIFI_ACTION: |
499 | _mgt_dispatcher(padapter, ptable, precv_frame); | 490 | _mgt_dispatcher(padapter, ptable, precv_frame); |
500 | break; | 491 | break; |