OSDN Git Service

staging: wilc1000: remove unused hif_drv in wilc_set_power_mgmt
authorChaehyun Lim <chaehyun.lim@gmail.com>
Tue, 5 Apr 2016 06:38:22 +0000 (15:38 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Apr 2016 05:02:04 +0000 (22:02 -0700)
This patch removes unused hif_drv in wilc_set_power_mgmt.
There is no need to check null and print debug log.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/host_interface.c

index 47ecf89..9a521ba 100644 (file)
@@ -3924,12 +3924,6 @@ int wilc_set_power_mgmt(struct wilc_vif *vif, bool enabled, u32 timeout)
        int result = 0;
        struct host_if_msg msg;
        struct power_mgmt_param *pwr_mgmt_info = &msg.body.pwr_mgmt_info;
-       struct host_if_drv *hif_drv = vif->hif_drv;
-
-       if (!hif_drv) {
-               netdev_err(vif->ndev, "driver is null\n");
-               return -EFAULT;
-       }
 
        if (wilc_wlan_get_num_conn_ifcs(vif->wilc) == 2 && enabled)
                return 0;