]> git.baikalelectronics.ru Git - kernel.git/commit
myri10ge: remove redundant assignment to variable status
authorColin Ian King <colin.i.king@gmail.com>
Mon, 18 Apr 2022 14:37:59 +0000 (15:37 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Apr 2022 09:23:24 +0000 (10:23 +0100)
commit8048d7cbe2206511fc0a49bec03687cf124ecb6d
tree1549e14db4ef874dfcec54c5475396139344bb06
parentc17ad9d09ccbf8c9eca95d37912815465d38214d
myri10ge: remove redundant assignment to variable status

Variable status is being assigned a value that is never read, it is
being re-assigned again later on. The assignment is redundant and can
be removed.

Cleans up clang scan build warning:
drivers/net/ethernet/myricom/myri10ge/myri10ge.c:582:7: warning: Although
the value stored to 'status' is used in the enclosing expression, the
value is never actually read from 'status' [deadcode.DeadStores]

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/myricom/myri10ge/myri10ge.c