Skip to contentSkip to conversation

Staging: wilc1000: host_interface: Remove unnecessary NULL test

PATCH In review Shivani Bhardwaj 2 participants 2 messages Oct 13, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: wilc1000: host_interface: Remove unnecessary NULL test

Remove a NULL test on variable hif_drv as it is already preceded by one.

---
 drivers/staging/wilc1000/host_interface.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/staging/wilc1000/host_interface.c +0 -5
index ec04aec..73f99ea 100644
@@ -4774,11 +4774,6 @@ s32 host_int_set_join_req(struct host_if_drv *hif_drv, u8 *pu8bssid,
 		return s32Error;
 	}
 
-	if (!hif_drv) {
-		PRINT_ER("Driver is null\n");
-		return -EFAULT;
-	}
-
 	if (pJoinParams == NULL) {
 		PRINT_ER("Unable to Join - JoinParams is NULL\n");
 		return -EFAULT;
Signature · 1 line
2.1.0
maintainer
#1 lore raw
Quoted 6 lines · Shivani Bhardwaj

Remove a NULL test on variable hif_drv as it is already preceded by one.

---
 drivers/staging/wilc1000/host_interface.c | 5 -----
 1 file changed, 5 deletions(-)

Doesn't apply at all :(