diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2008-09-01 07:46:50 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-09-03 09:53:45 -0400 |
commit | dc8cfa55da8c21e0b3290c29677a9d05c0a3e595 (patch) | |
tree | a4c8bedad12a15d1e7c9fcfc99f873280ca644b4 /drivers/net/sfc/falcon.h | |
parent | cc12dac2e512c2b6185ed91899e09e9910630315 (diff) |
sfc: Use explicit bool for boolean variables, parameters and return values
Replace (cond ? 1 : 0) with cond or !!cond as appropriate, and
(cond ? 0 : 1) with !cond.
Remove some redundant boolean temporaries.
Rename one field that looks like a flag but isn't.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/sfc/falcon.h')
-rw-r--r-- | drivers/net/sfc/falcon.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/sfc/falcon.h b/drivers/net/sfc/falcon.h index 492f9bc28840..a72f50e3e6eb 100644 --- a/drivers/net/sfc/falcon.h +++ b/drivers/net/sfc/falcon.h | |||
@@ -65,7 +65,7 @@ extern int falcon_probe_port(struct efx_nic *efx); | |||
65 | extern void falcon_remove_port(struct efx_nic *efx); | 65 | extern void falcon_remove_port(struct efx_nic *efx); |
66 | 66 | ||
67 | /* MAC/PHY */ | 67 | /* MAC/PHY */ |
68 | extern int falcon_xaui_link_ok(struct efx_nic *efx); | 68 | extern bool falcon_xaui_link_ok(struct efx_nic *efx); |
69 | extern int falcon_dma_stats(struct efx_nic *efx, | 69 | extern int falcon_dma_stats(struct efx_nic *efx, |
70 | unsigned int done_offset); | 70 | unsigned int done_offset); |
71 | extern void falcon_drain_tx_fifo(struct efx_nic *efx); | 71 | extern void falcon_drain_tx_fifo(struct efx_nic *efx); |