staging: et131x: et1310_rx: Fix coding style issues from checkpatch.pl
PATCH 5/5 staging: et131x: et1310_rx: Fix coding style issues from checkpatch.pl
This patch fixes 14 errors and 1 warning from checkpatch.pl Spaces replaced by tabs (14 errors).
Single statement brace style (1 warning).
Multiple long lines and other warnings not resolved.
Signed-off-by Michael Tate <[email protected]>
--- drivers/staging/et131x/et1310_rx.c | 32 ++++++++++++++++---------------- 1 files changed, 16 insertions(+), 16 deletions(-)
drivers/staging/et131x/et1310_rx.c +16 -16
@@ -842,9 +842,8 @@ PMP_RFD nic_rx_pkts(struct et131x_adapter *etdev) &etdev->regs->rxdma.psr_full_offset);#ifndef USE_FBR0 -if (rindex !=1 ) { +if (rindex !=1 )return NULL ; - }#endif #ifdef USE_FBR0
@@ -1076,20 +1075,21 @@ void et131x_handle_recv_interrupt(struct et131x_adapter *etdev)static inline u32 bump_fbr (u32 *fbr,u32 limit) { -u32 v = *fbr; - v++; -/* This works for all cases where limit < 1024. The 1023 case -works because 1023++ is 1024 which means the if condition is not -taken but the carry of the bit into the wrap bit toggles the wrap -value correctly */ -if ((v &ET_DMA10_MASK ) > limit) { - v &= ~ET_DMA10_MASK ; - v ^=ET_DMA10_WRAP ; - } -/* For the 1023 case */ - v &= (ET_DMA10_MASK |ET_DMA10_WRAP ); - *fbr = v; -return v; +u32 v = *fbr; + v++; +/* This works for all cases where limit < 1024. The 1023 case +* works because 1023++ is 1024 which means the if condition is not +* taken but the carry of the bit into the wrap bit toggles the wrap +* value correctly +*/ +if ((v &ET_DMA10_MASK ) > limit) { + v &= ~ET_DMA10_MASK ; + v ^=ET_DMA10_WRAP ; + } +/* For the 1023 case */ + v &= (ET_DMA10_MASK |ET_DMA10_WRAP ); + *fbr = v; +return v; }/**
Signature · 1 line
1.6.3.3