diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-11-01 11:49:45 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-02 09:48:16 +0300 |
commit | 3a1246fcbcb43b33c4540d74c36119d6389a24b4 (patch) | |
tree | 7f808995a3b821977869e954b47d2332e1816e8c /drivers/net/wan | |
parent | ed29668d1aa2c6f01e61dd616df13b5241cee7e0 (diff) | |
download | linux-3a1246fcbcb43b33c4540d74c36119d6389a24b4.tar.xz |
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: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wan')
-rw-r--r-- | drivers/net/wan/wanxl.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/wan/wanxl.c b/drivers/net/wan/wanxl.c index 0c7317520ed3..d573a57bc301 100644 --- a/drivers/net/wan/wanxl.c +++ b/drivers/net/wan/wanxl.c @@ -734,7 +734,6 @@ static int wanxl_pci_init_one(struct pci_dev *pdev, return -ENODEV; } - stat = 0; timeout = jiffies + 5 * HZ; do { if ((stat = readl(card->plx + PLX_MAILBOX_5)) != 0) |