mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 00:53:34 +02:00
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>
This commit is contained in:
parent
35ba6abb73
commit
17bd3a1e10
|
|
@ -362,7 +362,7 @@ void tulip_select_media(struct net_device *dev, int startup)
|
|||
iowrite32(0x33, ioaddr + CSR12);
|
||||
new_csr6 = 0x01860000;
|
||||
/* Trigger autonegotiation. */
|
||||
iowrite32(startup ? 0x0201F868 : 0x0001F868, ioaddr + 0xB8);
|
||||
iowrite32(0x0001F868, ioaddr + 0xB8);
|
||||
} else {
|
||||
iowrite32(0x32, ioaddr + CSR12);
|
||||
new_csr6 = 0x00420000;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user