Commit f2684292 authored by Teodora Baluta's avatar Teodora Baluta Committed by Greg Kroah-Hartman

staging: rtl8187se: fix assignment of bool to 0/1

This patch fixes the following coccinelle warnings:

drivers/staging/rtl8187se/r8180_core.c:2433:1-20: WARNING: Assignment of bool to 0/1
drivers/staging/rtl8187se/r8180_core.c:2275:3-34: WARNING: Assignment  of bool to 0/1
Signed-off-by: default avatarTeodora Baluta <teobaluta@gmail.com>
Reviewed-by: default avatarRusty Russell <rusty@rustcorp.com.au>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c9a6ffa6
...@@ -2272,7 +2272,7 @@ static void rtl8180_set_channel_map(u8 channel_plan, struct ieee80211_device *ie ...@@ -2272,7 +2272,7 @@ static void rtl8180_set_channel_map(u8 channel_plan, struct ieee80211_device *ie
} }
case COUNTRY_CODE_GLOBAL_DOMAIN: case COUNTRY_CODE_GLOBAL_DOMAIN:
{ {
GET_DOT11D_INFO(ieee)->bEnabled = 0; GET_DOT11D_INFO(ieee)->bEnabled = false;
Dot11d_Reset(ieee); Dot11d_Reset(ieee);
ieee->bGlobalDomain = true; ieee->bGlobalDomain = true;
break; break;
...@@ -2430,7 +2430,7 @@ short rtl8180_init(struct net_device *dev) ...@@ -2430,7 +2430,7 @@ short rtl8180_init(struct net_device *dev)
init_timer(&priv->SwAntennaDiversityTimer); init_timer(&priv->SwAntennaDiversityTimer);
priv->SwAntennaDiversityTimer.data = (unsigned long)dev; priv->SwAntennaDiversityTimer.data = (unsigned long)dev;
priv->SwAntennaDiversityTimer.function = (void *)SwAntennaDiversityTimerCallback; priv->SwAntennaDiversityTimer.function = (void *)SwAntennaDiversityTimerCallback;
priv->bDigMechanism = 1; priv->bDigMechanism = true;
priv->InitialGain = 6; priv->InitialGain = 6;
priv->bXtalCalibration = false; priv->bXtalCalibration = false;
priv->XtalCal_Xin = 0; priv->XtalCal_Xin = 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