]> git.baikalelectronics.ru Git - kernel.git/commit
tulip: Remove deadcode on startup true condition
authorColin Ian King <colin.king@canonical.com>
Fri, 6 Aug 2021 12:49:32 +0000 (13:49 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Aug 2021 08:39:54 +0000 (09:39 +0100)
commit98985c6a2ed8c88742efd5f470d87743a592a10b
tree0bff09c1c33f0db605813a3adad3285a57191da8
parent13cf204a71f8ce1bb84bab3d6f4fb16d0ee9de99
tulip: Remove deadcode on startup true condition

The true check on the variable startable in the ternary operator
is always false because the previous if statement handles the true
condition for startable. Hence the ternary check is dead code and
can be removed.

Addresses-Coverity: ("Logically dead code")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/dec/tulip/media.c