aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/can
diff options
context:
space:
mode:
authorWolfram Sang <w.sang@pengutronix.de>2009-11-16 07:57:49 -0500
committerDavid S. Miller <davem@davemloft.net>2009-11-17 06:54:02 -0500
commit68bd7422a2e07a4e5502137cd4bddb8c2774a912 (patch)
tree0f42eee1a2057ddc18264df99b4d881e62bff6a7 /drivers/net/can
parent1712fe59415faf23a36c38dbacf18efd4ffe94e0 (diff)
net/can/mscan: drop assignment in while-construct
As suggested by Wolfgang Grandegger. Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/can')
-rw-r--r--drivers/net/can/mscan/mscan.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/can/mscan/mscan.c b/drivers/net/can/mscan/mscan.c
index 76e413e7fdb1..20d1991b9094 100644
--- a/drivers/net/can/mscan/mscan.c
+++ b/drivers/net/can/mscan/mscan.c
@@ -379,8 +379,10 @@ static int mscan_rx_poll(struct napi_struct *napi, int quota)
379 struct can_frame *frame; 379 struct can_frame *frame;
380 u8 canrflg; 380 u8 canrflg;
381 381
382 while (npackets < quota && ((canrflg = in_8(&regs->canrflg)) & 382 while (npackets < quota) {
383 (MSCAN_RXF | MSCAN_ERR_IF))) { 383 canrflg = in_8(&regs->canrflg);
384 if (!(canrflg & (MSCAN_RXF | MSCAN_ERR_IF)))
385 break;
384 386
385 skb = alloc_can_skb(dev, &frame); 387 skb = alloc_can_skb(dev, &frame);
386 if (!skb) { 388 if (!skb) {