From: Shivani Bhardwaj Date: Tue, 13 Oct 2015 20:32:11 +0000 (+0530) Subject: Staging: wilc1000: host_interface: Remove extra NULL test X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1a86f2a1b792ea6b8f21dd3448624f053ef1d6f6;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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;