Staging: wilc1000: host_interface: Remove extra NULL test
authorShivani Bhardwaj <shivanib134@gmail.com>
Tue, 13 Oct 2015 20:32:11 +0000 (02:02 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Oct 2015 21:34:45 +0000 (14:34 -0700)
Remove a NULL test on variable hif_drv as it is already preceded by one.

Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/host_interface.c

index 706b27d8803ef0f3e97368355aefffff50358464..04f3bc2ceaa3fa18fb27b1f4cd53ae1d9fa145cd 100644 (file)
@@ -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;
This page took 0.027182 seconds and 5 git commands to generate.