Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 27739419 authored by Sudip Mukherjee's avatar Sudip Mukherjee Committed by Greg Kroah-Hartman
Browse files

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: default avatarSudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 48028c61
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
+1 −1
Original line number Diff line number Diff line
@@ -123,7 +123,7 @@ static struct dvobj_priv *usb_dvobj_init(struct usb_interface *usb_intf)
	status = _SUCCESS;

free_dvobj:
	if (status != _SUCCESS && pdvobjpriv) {
	if (status != _SUCCESS) {
		usb_set_intfdata(usb_intf, NULL);
		kfree(pdvobjpriv);
		pdvobjpriv = NULL;