]> 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)
commitf2d03b05cbea80be8c83e635e269ded7ac42374d
tree0bff09c1c33f0db605813a3adad3285a57191da8
parentce3eb8fed5e7b242e05e522bb400d6e52229e061
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