diff options
author | Glen Lee | 2015-12-21 06:18:49 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2015-12-21 22:21:09 +0100 |
commit | 03efae328ddcda7826a3bedb2ac15eb9598eabb4 (patch) | |
tree | e99052e83e7b16c22788547db6ae8a52178af601 /drivers/staging/wilc1000/linux_wlan.c | |
parent | staging: wilc1000: remove wilc of struct host_if_drv (diff) | |
download | kernel-qcow2-linux-03efae328ddcda7826a3bedb2ac15eb9598eabb4.tar.gz kernel-qcow2-linux-03efae328ddcda7826a3bedb2ac15eb9598eabb4.tar.xz kernel-qcow2-linux-03efae328ddcda7826a3bedb2ac15eb9598eabb4.zip |
staging: wilc1000: set hif_drv before it is used
We are using hif_drv of vif, so it needs to be set before it is used.
Set hif_drv to vif->hifdrv soon after it is allocated.
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wilc1000/linux_wlan.c')
-rw-r--r-- | drivers/staging/wilc1000/linux_wlan.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/wilc1000/linux_wlan.c b/drivers/staging/wilc1000/linux_wlan.c index a50e3ffcbb8d..54fe9d74b780 100644 --- a/drivers/staging/wilc1000/linux_wlan.c +++ b/drivers/staging/wilc1000/linux_wlan.c @@ -1036,7 +1036,6 @@ int wilc_mac_open(struct net_device *ndev) for (i = 0; i < wl->vif_num; i++) { if (ndev == wl->vif[i]->ndev) { memcpy(wl->vif[i]->src_addr, mac_add, ETH_ALEN); - wl->vif[i]->hif_drv = priv->hWILCWFIDrv; break; } } |