Commit 3a1246fc authored by Colin Ian King's avatar Colin Ian King Committed by David S. Miller

wan: wanxl: remove redundant assignment to stat

stat set to zero and the value is never read, instead stat is
set again in the do-loop. Hence the setting to zero is redundant
and can be removed. Cleans up clang warning:

drivers/net/wan/wanxl.c:737:2: warning: Value stored to 'stat'
is never read
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ed29668d
...@@ -734,7 +734,6 @@ static int wanxl_pci_init_one(struct pci_dev *pdev, ...@@ -734,7 +734,6 @@ static int wanxl_pci_init_one(struct pci_dev *pdev,
return -ENODEV; return -ENODEV;
} }
stat = 0;
timeout = jiffies + 5 * HZ; timeout = jiffies + 5 * HZ;
do { do {
if ((stat = readl(card->plx + PLX_MAILBOX_5)) != 0) if ((stat = readl(card->plx + PLX_MAILBOX_5)) != 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment