Fixes checkpatch.pl warnings. Signed-off-by: Nathan Chancellor <natechancellor@xxxxxxxxx> --- drivers/staging/ks7010/ks_hostif.c | 4 ++-- drivers/staging/ks7010/ks_wlan.h | 4 ++-- drivers/staging/ks7010/ks_wlan_net.c | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c index 628171091786..43090922daff 100644 --- a/drivers/staging/ks7010/ks_hostif.c +++ b/drivers/staging/ks7010/ks_hostif.c @@ -475,7 +475,7 @@ void hostif_mib_get_confirm(struct ks_wlan_private *priv) case DOT11_MAC_ADDRESS: hostif_sme_enqueue(priv, SME_GET_MAC_ADDRESS); ether_addr_copy(priv->eth_addr, priv->rxp); - priv->mac_address_valid = true; + priv->mac_address_valid = 1; ether_addr_copy(dev->dev_addr, priv->eth_addr); netdev_info(dev, "MAC ADDRESS = %pM\n", priv->eth_addr); break; @@ -582,7 +582,7 @@ void hostif_mib_set_confirm(struct ks_wlan_private *priv) hostif_sme_enqueue(priv, SME_MULTICAST_CONFIRM); break; case LOCAL_CURRENTADDRESS: - priv->mac_address_valid = true; + priv->mac_address_valid = 1; break; case DOT11_RSN_CONFIG_MULTICAST_CIPHER: hostif_sme_enqueue(priv, SME_RSN_MCAST_CONFIRM); diff --git a/drivers/staging/ks7010/ks_wlan.h b/drivers/staging/ks7010/ks_wlan.h index 5070af86115f..ffe0e80277c9 100644 --- a/drivers/staging/ks7010/ks_wlan.h +++ b/drivers/staging/ks7010/ks_wlan.h @@ -411,7 +411,7 @@ struct ks_wlan_private { unsigned int need_commit; /* for ioctl */ /* DeviceIoControl */ - bool is_device_open; + int is_device_open; atomic_t event_count; atomic_t rec_count; int dev_count; @@ -423,7 +423,7 @@ struct ks_wlan_private { unsigned char firmware_version[128 + 1]; int version_size; - bool mac_address_valid; /* Mac Address Status */ + int mac_address_valid; /* Mac Address Status */ int dev_state; diff --git a/drivers/staging/ks7010/ks_wlan_net.c b/drivers/staging/ks7010/ks_wlan_net.c index 0c83d6fe270f..30c03f5d0ec1 100644 --- a/drivers/staging/ks7010/ks_wlan_net.c +++ b/drivers/staging/ks7010/ks_wlan_net.c @@ -2504,7 +2504,7 @@ int ks_wlan_set_mac_address(struct net_device *dev, void *addr) memcpy(dev->dev_addr, mac_addr->sa_data, dev->addr_len); memcpy(priv->eth_addr, mac_addr->sa_data, ETH_ALEN); - priv->mac_address_valid = false; + priv->mac_address_valid = 0; hostif_sme_enqueue(priv, SME_MACADDRESS_SET_REQUEST); netdev_info(dev, "ks_wlan: MAC ADDRESS = %pM\n", priv->eth_addr); return 0; @@ -2627,8 +2627,8 @@ int ks_wlan_net_start(struct net_device *dev) /* int rc; */ priv = netdev_priv(dev); - priv->mac_address_valid = false; - priv->is_device_open = true; + priv->mac_address_valid = 0; + priv->is_device_open = 1; priv->need_commit = 0; /* phy information update timer */ atomic_set(&update_phyinfo, 0); @@ -2652,7 +2652,7 @@ int ks_wlan_net_stop(struct net_device *dev) { struct ks_wlan_private *priv = netdev_priv(dev); - priv->is_device_open = false; + priv->is_device_open = 0; del_timer_sync(&update_phyinfo_timer); if (netif_running(dev)) -- 2.17.0 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel