summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/b43legacy/rfkill.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2015-03-30 04:29:42 +0300
committerKalle Valo <kvalo@codeaurora.org>2015-04-07 20:10:23 +0300
commit12827fecf4dd47cc6e2b3a37edcdf81b52c9e2fa (patch)
treea788a7b19a67992cac49b9ea113b5e0d14b8fb7a /drivers/net/wireless/b43legacy/rfkill.c
parentcad737dfde3566e3293e884e8b391e2cae7e8068 (diff)
downloadlinux-12827fecf4dd47cc6e2b3a37edcdf81b52c9e2fa.tar.xz
wireless: Use bool function returns of true/false instead of 1/0
Use bool constants as the return values instead of 1 and 0. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/b43legacy/rfkill.c')
-rw-r--r--drivers/net/wireless/b43legacy/rfkill.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/b43legacy/rfkill.c b/drivers/net/wireless/b43legacy/rfkill.c
index c4559bcbc707..7c1bdbc02569 100644
--- a/drivers/net/wireless/b43legacy/rfkill.c
+++ b/drivers/net/wireless/b43legacy/rfkill.c
@@ -32,7 +32,7 @@ bool b43legacy_is_hw_radio_enabled(struct b43legacy_wldev *dev)
if (dev->dev->id.revision >= 3) {
if (!(b43legacy_read32(dev, B43legacy_MMIO_RADIO_HWENABLED_HI)
& B43legacy_MMIO_RADIO_HWENABLED_HI_MASK))
- return 1;
+ return true;
} else {
/* To prevent CPU fault on PPC, do not read a register
* unless the interface is started; however, on resume
@@ -40,12 +40,12 @@ bool b43legacy_is_hw_radio_enabled(struct b43legacy_wldev *dev)
* that happens, unconditionally return TRUE.
*/
if (b43legacy_status(dev) < B43legacy_STAT_STARTED)
- return 1;
+ return true;
if (b43legacy_read16(dev, B43legacy_MMIO_RADIO_HWENABLED_LO)
& B43legacy_MMIO_RADIO_HWENABLED_LO_MASK)
- return 1;
+ return true;
}
- return 0;
+ return false;
}
/* The poll callback for the hardware button. */