diff options
author | Sergio Paracuellos <sergio.paracuellos@gmail.com> | 2018-04-23 15:44:48 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-04-25 15:47:23 +0200 |
commit | d892cc1cfe0c1ce4e4eb58a1877835802953adac (patch) | |
tree | 49e637e536fa79086250f65d2844652e8bf961c6 /drivers/staging/ks7010/ks_wlan_net.c | |
parent | 06176b874a2e25343ffe4ed83c3c4d6290e97cf0 (diff) | |
download | op-kernel-dev-d892cc1cfe0c1ce4e4eb58a1877835802953adac.zip op-kernel-dev-d892cc1cfe0c1ce4e4eb58a1877835802953adac.tar.gz |
staging: ks7010: change name and type for device_open_status field
This commit changes type for device_open_status field of ks_wlan_private
structure from int to bool. This variable is only be set to 1
on ks_wlan_net_start and set to 0 on ks_wlan_net_stop. For this
purpose it is not necessary at all to use an integer because a bool
is enough. This also renames field name from device_open_status to
is_device_open.
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ks7010/ks_wlan_net.c')
-rw-r--r-- | drivers/staging/ks7010/ks_wlan_net.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/ks7010/ks_wlan_net.c b/drivers/staging/ks7010/ks_wlan_net.c index 05f8216..76ed4ed9 100644 --- a/drivers/staging/ks7010/ks_wlan_net.c +++ b/drivers/staging/ks7010/ks_wlan_net.c @@ -2816,9 +2816,8 @@ int ks_wlan_net_start(struct net_device *dev) priv = netdev_priv(dev); priv->mac_address_valid = false; - priv->device_open_status = true; + priv->is_device_open = true; priv->need_commit = 0; - /* phy information update timer */ atomic_set(&update_phyinfo, 0); timer_setup(&update_phyinfo_timer, ks_wlan_update_phyinfo_timeout, 0); @@ -2848,7 +2847,7 @@ int ks_wlan_net_stop(struct net_device *dev) { struct ks_wlan_private *priv = netdev_priv(dev); - priv->device_open_status = false; + priv->is_device_open = false; del_timer_sync(&update_phyinfo_timer); if (netif_running(dev)) |