mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-03 15:55:38 +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
1 changed files with 4 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue