From: Colin King <hidden> Date: 2017-11-01 08:49:49
From: Colin Ian King <redacted>
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 <redacted>
---
drivers/net/wan/wanxl.c | 1 -
1 file changed, 1 deletion(-)
From: walter harms <hidden> Date: 2017-11-01 10:50:27
Am 01.11.2017 09:49, schrieb Colin King:
quoted hunk
From: Colin Ian King <redacted>
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 <redacted>
---
drivers/net/wan/wanxl.c | 1 -
1 file changed, 1 deletion(-)
@@ -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)
it is std. practice to have the pattern:
a=b;
if (a == c) ...
maybe that can be done also here.
stat = readl(card->plx + PLX_MAILBOX_5);
if ( stat != 0)
just a hint.
re,
wh
From: David Miller <davem@davemloft.net> Date: 2017-11-02 06:49:53
From: Colin King <redacted>
Date: Wed, 1 Nov 2017 08:49:45 +0000
From: Colin Ian King <redacted>
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 <redacted>