Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

b43: return true / false instead of numbers in functions which return bool value

Signed-off-by: Zhao, Gang <gamerh2o@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

authored by

Zhao, Gang and committed by
John W. Linville
1a2b250b cc1ad9d2

+8 -8
+1 -1
drivers/net/wireless/b43/debugfs.h
··· 86 86 87 87 static inline bool b43_debug(struct b43_wldev *dev, enum b43_dyndbg feature) 88 88 { 89 - return 0; 89 + return false; 90 90 } 91 91 92 92 static inline void b43_debugfs_init(void)
+2 -2
drivers/net/wireless/b43/phy_common.c
··· 133 133 bool b43_has_hardware_pctl(struct b43_wldev *dev) 134 134 { 135 135 if (!dev->phy.hardware_power_control) 136 - return 0; 136 + return false; 137 137 if (!dev->phy.ops->supports_hwpctl) 138 - return 0; 138 + return false; 139 139 return dev->phy.ops->supports_hwpctl(dev); 140 140 } 141 141
+5 -5
drivers/net/wireless/b43/pio.c
··· 637 637 638 638 ctl = b43_piorx_read32(q, B43_PIO8_RXCTL); 639 639 if (!(ctl & B43_PIO8_RXCTL_FRAMERDY)) 640 - return 0; 640 + return false; 641 641 b43_piorx_write32(q, B43_PIO8_RXCTL, 642 642 B43_PIO8_RXCTL_FRAMERDY); 643 643 for (i = 0; i < 10; i++) { ··· 651 651 652 652 ctl = b43_piorx_read16(q, B43_PIO_RXCTL); 653 653 if (!(ctl & B43_PIO_RXCTL_FRAMERDY)) 654 - return 0; 654 + return false; 655 655 b43_piorx_write16(q, B43_PIO_RXCTL, 656 656 B43_PIO_RXCTL_FRAMERDY); 657 657 for (i = 0; i < 10; i++) { ··· 662 662 } 663 663 } 664 664 b43dbg(q->dev->wl, "PIO RX timed out\n"); 665 - return 1; 665 + return true; 666 666 data_ready: 667 667 668 668 /* Get the preamble (RX header) */ ··· 759 759 760 760 b43_rx(q->dev, skb, rxhdr); 761 761 762 - return 1; 762 + return true; 763 763 764 764 rx_error: 765 765 if (err_msg) ··· 769 769 else 770 770 b43_piorx_write16(q, B43_PIO_RXCTL, B43_PIO_RXCTL_DATARDY); 771 771 772 - return 1; 772 + return true; 773 773 } 774 774 775 775 void b43_pio_rx(struct b43_pio_rxqueue *q)