mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 18:43:33 +02:00
net: wan: move out assignment in if condition
Should not use assignment in if condition. Signed-off-by: Peng Li <lipeng321@huawei.com> Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c3b6b5c64f
commit
87feef1cfb
|
|
@ -404,7 +404,9 @@ static int wanxl_open(struct net_device *dev)
|
|||
netdev_err(dev, "port already open\n");
|
||||
return -EIO;
|
||||
}
|
||||
if ((i = hdlc_open(dev)) != 0)
|
||||
|
||||
i = hdlc_open(dev);
|
||||
if (i)
|
||||
return i;
|
||||
|
||||
port->tx_in = port->tx_out = 0;
|
||||
|
|
@ -730,7 +732,8 @@ static int wanxl_pci_init_one(struct pci_dev *pdev,
|
|||
|
||||
timeout = jiffies + 5 * HZ;
|
||||
do {
|
||||
if ((stat = readl(card->plx + PLX_MAILBOX_5)) != 0)
|
||||
stat = readl(card->plx + PLX_MAILBOX_5);
|
||||
if (stat)
|
||||
break;
|
||||
schedule();
|
||||
} while (time_after(timeout, jiffies));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user