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/rx.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/rx.h')
-rw-r--r-- | drivers/net/sfc/rx.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/sfc/rx.h b/drivers/net/sfc/rx.h index f35e377bfc5f..187b1109973c 100644 --- a/drivers/net/sfc/rx.h +++ b/drivers/net/sfc/rx.h | |||
@@ -24,6 +24,6 @@ void efx_rx_strategy(struct efx_channel *channel); | |||
24 | void efx_fast_push_rx_descriptors(struct efx_rx_queue *rx_queue); | 24 | void efx_fast_push_rx_descriptors(struct efx_rx_queue *rx_queue); |
25 | void efx_rx_work(struct work_struct *data); | 25 | void efx_rx_work(struct work_struct *data); |
26 | void __efx_rx_packet(struct efx_channel *channel, | 26 | void __efx_rx_packet(struct efx_channel *channel, |
27 | struct efx_rx_buffer *rx_buf, int checksummed); | 27 | struct efx_rx_buffer *rx_buf, bool checksummed); |
28 | 28 | ||
29 | #endif /* EFX_RX_H */ | 29 | #endif /* EFX_RX_H */ |