mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 13:53:33 +00:00
net: davicom: Remove redundant assignment to ret
Variable ret is set to zero but this value is never read as it is overwritten with a new value later on, hence it is a redundant assignment and can be removed. Cleans up the following clang-analyzer warning: drivers/net/ethernet/davicom/dm9000.c:1527:5: warning: Value stored to 'ret' is never read [clang-analyzer-deadcode.DeadStores]. Reported-by: Abaci Robot <abaci@linux.alibaba.com> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
930d2d619d
commit
9176e38027
1 changed files with 0 additions and 1 deletions
|
@ -1522,7 +1522,6 @@ dm9000_probe(struct platform_device *pdev)
|
|||
if (ret) {
|
||||
dev_err(db->dev, "irq %d cannot set wakeup (%d)\n",
|
||||
db->irq_wake, ret);
|
||||
ret = 0;
|
||||
} else {
|
||||
irq_set_irq_wake(db->irq_wake, 0);
|
||||
db->wake_supported = 1;
|
||||
|
|
Loading…
Reference in a new issue