]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
wan: wanxl: remove redundant assignment to stat
authorColin Ian King <colin.king@canonical.com>
Wed, 1 Nov 2017 08:49:45 +0000 (08:49 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Nov 2017 06:48:16 +0000 (15:48 +0900)
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>
drivers/net/wan/wanxl.c

index 0c7317520ed396a2a2448a21b62e08cd1debdfc4..d573a57bc3018f4b737d4da0480f2ae2ba6fa8ae 100644 (file)
@@ -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)