aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/plip.c
diff options
context:
space:
mode:
authorHannes Eder <hannes@hanneseder.net>2008-12-26 02:55:35 -0500
committerDavid S. Miller <davem@davemloft.net>2008-12-26 02:55:35 -0500
commite4c3c13cb4c4985cb62cf28677fc0ace69a8d69f (patch)
tree3e944ccdee5669f517803ed3ab7475c75a35e69a /drivers/net/plip.c
parent2705d4f87c068552f45e5d6feaa5c468a312f761 (diff)
drivers/net: fix sparse warnings: make do-while a compound statement
While at it insert some extra curly braces and fix formatting. Fix this sparse warnings: drivers/net/atp.c:811:8: warning: do-while statement is not a compound statement drivers/net/atp.c:813:8: warning: do-while statement is not a compound statement drivers/net/atp.c:815:11: warning: do-while statement is not a compound statement drivers/net/atp.c:817:11: warning: do-while statement is not a compound statement drivers/net/plip.c:642:4: warning: do-while statement is not a compound statement drivers/net/plip.c:647:4: warning: do-while statement is not a compound statement drivers/net/plip.c:820:4: warning: do-while statement is not a compound statement drivers/net/plip.c:825:4: warning: do-while statement is not a compound statement drivers/net/starfire.c:886:3: warning: do-while statement is not a compound statement Signed-off-by: Hannes Eder <hannes@hanneseder.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/plip.c')
-rw-r--r--drivers/net/plip.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/plip.c b/drivers/net/plip.c
index 5d904f73345f..ed8582ea7e54 100644
--- a/drivers/net/plip.c
+++ b/drivers/net/plip.c
@@ -638,14 +638,14 @@ plip_receive_packet(struct net_device *dev, struct net_local *nl,
638 638
639 case PLIP_PK_DATA: 639 case PLIP_PK_DATA:
640 lbuf = rcv->skb->data; 640 lbuf = rcv->skb->data;
641 do 641 do {
642 if (plip_receive(nibble_timeout, dev, 642 if (plip_receive(nibble_timeout, dev,
643 &rcv->nibble, &lbuf[rcv->byte])) 643 &rcv->nibble, &lbuf[rcv->byte]))
644 return TIMEOUT; 644 return TIMEOUT;
645 while (++rcv->byte < rcv->length.h); 645 } while (++rcv->byte < rcv->length.h);
646 do 646 do {
647 rcv->checksum += lbuf[--rcv->byte]; 647 rcv->checksum += lbuf[--rcv->byte];
648 while (rcv->byte); 648 } while (rcv->byte);
649 rcv->state = PLIP_PK_CHECKSUM; 649 rcv->state = PLIP_PK_CHECKSUM;
650 650
651 case PLIP_PK_CHECKSUM: 651 case PLIP_PK_CHECKSUM:
@@ -816,14 +816,14 @@ plip_send_packet(struct net_device *dev, struct net_local *nl,
816 snd->checksum = 0; 816 snd->checksum = 0;
817 817
818 case PLIP_PK_DATA: 818 case PLIP_PK_DATA:
819 do 819 do {
820 if (plip_send(nibble_timeout, dev, 820 if (plip_send(nibble_timeout, dev,
821 &snd->nibble, lbuf[snd->byte])) 821 &snd->nibble, lbuf[snd->byte]))
822 return TIMEOUT; 822 return TIMEOUT;
823 while (++snd->byte < snd->length.h); 823 } while (++snd->byte < snd->length.h);
824 do 824 do {
825 snd->checksum += lbuf[--snd->byte]; 825 snd->checksum += lbuf[--snd->byte];
826 while (snd->byte); 826 } while (snd->byte);
827 snd->state = PLIP_PK_CHECKSUM; 827 snd->state = PLIP_PK_CHECKSUM;
828 828
829 case PLIP_PK_CHECKSUM: 829 case PLIP_PK_CHECKSUM: