mirror of
https://github.com/torvalds/linux.git
synced 2024-11-01 17:51:43 +00:00
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>
This commit is contained in:
parent
1712fe5941
commit
68bd7422a2
@ -379,8 +379,10 @@ static int mscan_rx_poll(struct napi_struct *napi, int quota)
|
||||
struct can_frame *frame;
|
||||
u8 canrflg;
|
||||
|
||||
while (npackets < quota && ((canrflg = in_8(®s->canrflg)) &
|
||||
(MSCAN_RXF | MSCAN_ERR_IF))) {
|
||||
while (npackets < quota) {
|
||||
canrflg = in_8(®s->canrflg);
|
||||
if (!(canrflg & (MSCAN_RXF | MSCAN_ERR_IF)))
|
||||
break;
|
||||
|
||||
skb = alloc_can_skb(dev, &frame);
|
||||
if (!skb) {
|
||||
|
Loading…
Reference in New Issue
Block a user