Skip to content

Commit

Permalink
b43: return true / false instead of numbers in functions which return…
Browse files Browse the repository at this point in the history
… bool value

Signed-off-by: Zhao, Gang <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
  • Loading branch information
zhao-gang authored and linvjw committed Feb 24, 2014
1 parent cc1ad9d commit 1a2b250
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion drivers/net/wireless/b43/debugfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ void b43_debugfs_log_txstat(struct b43_wldev *dev,

static inline bool b43_debug(struct b43_wldev *dev, enum b43_dyndbg feature)
{
return 0;
return false;
}

static inline void b43_debugfs_init(void)
Expand Down
4 changes: 2 additions & 2 deletions drivers/net/wireless/b43/phy_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ void b43_phy_exit(struct b43_wldev *dev)
bool b43_has_hardware_pctl(struct b43_wldev *dev)
{
if (!dev->phy.hardware_power_control)
return 0;
return false;
if (!dev->phy.ops->supports_hwpctl)
return 0;
return false;
return dev->phy.ops->supports_hwpctl(dev);
}

Expand Down
10 changes: 5 additions & 5 deletions drivers/net/wireless/b43/pio.c
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ static bool pio_rx_frame(struct b43_pio_rxqueue *q)

ctl = b43_piorx_read32(q, B43_PIO8_RXCTL);
if (!(ctl & B43_PIO8_RXCTL_FRAMERDY))
return 0;
return false;
b43_piorx_write32(q, B43_PIO8_RXCTL,
B43_PIO8_RXCTL_FRAMERDY);
for (i = 0; i < 10; i++) {
Expand All @@ -651,7 +651,7 @@ static bool pio_rx_frame(struct b43_pio_rxqueue *q)

ctl = b43_piorx_read16(q, B43_PIO_RXCTL);
if (!(ctl & B43_PIO_RXCTL_FRAMERDY))
return 0;
return false;
b43_piorx_write16(q, B43_PIO_RXCTL,
B43_PIO_RXCTL_FRAMERDY);
for (i = 0; i < 10; i++) {
Expand All @@ -662,7 +662,7 @@ static bool pio_rx_frame(struct b43_pio_rxqueue *q)
}
}
b43dbg(q->dev->wl, "PIO RX timed out\n");
return 1;
return true;
data_ready:

/* Get the preamble (RX header) */
Expand Down Expand Up @@ -759,7 +759,7 @@ static bool pio_rx_frame(struct b43_pio_rxqueue *q)

b43_rx(q->dev, skb, rxhdr);

return 1;
return true;

rx_error:
if (err_msg)
Expand All @@ -769,7 +769,7 @@ static bool pio_rx_frame(struct b43_pio_rxqueue *q)
else
b43_piorx_write16(q, B43_PIO_RXCTL, B43_PIO_RXCTL_DATARDY);

return 1;
return true;
}

void b43_pio_rx(struct b43_pio_rxqueue *q)
Expand Down

0 comments on commit 1a2b250

Please sign in to comment.