From 1a86f2a1b792ea6b8f21dd3448624f053ef1d6f6 Mon Sep 17 00:00:00 2001 From: Shivani Bhardwaj Date: Wed, 14 Oct 2015 02:02:11 +0530 Subject: [PATCH] Staging: wilc1000: host_interface: Remove extra NULL test Remove a NULL test on variable hif_drv as it is already preceded by one. Signed-off-by: Shivani Bhardwaj Signed-off-by: Greg Kroah-Hartman --- drivers/staging/wilc1000/host_interface.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c index 706b27d8803e..04f3bc2ceaa3 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -3592,11 +3592,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; -- 2.20.1