Commit 2db2c8a7 authored by Leo Kim's avatar Leo Kim Committed by Greg Kroah-Hartman

staging: wilc1000: rename pstrWFIDrv of function mac_close

This patch renames pstrWFIDrv of function mac_close to hif_drv
to avoid CamelCase naming convention.
And, some debug print modification that has been included name 'pstrWFIDrv'.
Signed-off-by: default avatarLeo Kim <leo.kim@atmel.com>
Signed-off-by: default avatarGlen Lee <glen.lee@atmel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ef7606c5
......@@ -1430,7 +1430,7 @@ int mac_close(struct net_device *ndev)
{
struct wilc_priv *priv;
perInterface_wlan_t *nic;
struct host_if_drv *pstrWFIDrv;
struct host_if_drv *hif_drv;
struct wilc *wl;
nic = netdev_priv(ndev);
......@@ -1449,7 +1449,7 @@ int mac_close(struct net_device *ndev)
return 0;
}
pstrWFIDrv = (struct host_if_drv *)priv->hWILCWFIDrv;
hif_drv = (struct host_if_drv *)priv->hWILCWFIDrv;
PRINT_D(GENERIC_DBG, "Mac close\n");
......@@ -1458,8 +1458,8 @@ int mac_close(struct net_device *ndev)
return 0;
}
if (!pstrWFIDrv) {
PRINT_ER("pstrWFIDrv = NULL\n");
if (!hif_drv) {
PRINT_ER("hif_drv = NULL\n");
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment