OSDN Git Service

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)
commit17bd3a1e10615b7a790faf5ff4cd87401d447e7c
tree0bff09c1c33f0db605813a3adad3285a57191da8
parent35ba6abb73e4d2ba21a566d3671618f4a5503c27
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