summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c
diff options
context:
space:
mode:
authorSudip Mukherjee2015-07-16 13:28:08 +0200
committerGreg Kroah-Hartman2015-07-16 19:17:08 +0200
commit277394198413fc46e81767827533e5ab8ef167af (patch)
tree15fd89f20bb875af913f1888045465acd5812799 /drivers/staging/rtl8188eu/core/rtw_mlme_ext.c
parentstaging: rtl8188eu: remove unused function (diff)
downloadkernel-qcow2-linux-277394198413fc46e81767827533e5ab8ef167af.tar.gz
kernel-qcow2-linux-277394198413fc46e81767827533e5ab8ef167af.tar.xz
kernel-qcow2-linux-277394198413fc46e81767827533e5ab8ef167af.zip
staging: rtl8188eu: remove redundant NULL check
The check for pstat and pdvobjpriv is not required here as we have already checked for them before. Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8188eu/core/rtw_mlme_ext.c')
-rw-r--r--drivers/staging/rtl8188eu/core/rtw_mlme_ext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c b/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c
index a0b8f665fa2f..ba8f9aa5d259 100644
--- a/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c
+++ b/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c
@@ -3367,7 +3367,7 @@ static unsigned int OnAssocReq(struct adapter *padapter,
spin_unlock_bh(&pstapriv->asoc_list_lock);
/* now the station is qualified to join our BSS... */
- if (pstat && (pstat->state & WIFI_FW_ASSOC_SUCCESS) && (_STATS_SUCCESSFUL_ == status)) {
+ if ((pstat->state & WIFI_FW_ASSOC_SUCCESS) && (_STATS_SUCCESSFUL_ == status)) {
/* 1 bss_cap_update & sta_info_update */
bss_cap_update_on_sta_join(padapter, pstat);
sta_info_update(padapter, pstat);