diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2022-01-23 21:34:40 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-01-25 18:40:44 +0300 |
commit | 6b0671a23dd6cc949d12fa8d65171856159cd17b (patch) | |
tree | b3086c54637749f77fe2b502e206b3afc4f29427 /drivers/net/ethernet/dec/tulip/pnic.c | |
parent | 6fc2f3832d36d74289680a1bf4484def8321f6e0 (diff) | |
download | linux-6b0671a23dd6cc949d12fa8d65171856159cd17b.tar.xz |
net: tulip: remove redundant assignment to variable new_csr6
Variable new_csr6 is being initialized with a value that is never
read, it is being re-assigned later on. The assignment is redundant
and can be removed.
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20220123183440.112495-1-colin.i.king@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/dec/tulip/pnic.c')
-rw-r--r-- | drivers/net/ethernet/dec/tulip/pnic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/dec/tulip/pnic.c b/drivers/net/ethernet/dec/tulip/pnic.c index 3fb39e32e1b4..653bde48ef44 100644 --- a/drivers/net/ethernet/dec/tulip/pnic.c +++ b/drivers/net/ethernet/dec/tulip/pnic.c @@ -21,7 +21,7 @@ void pnic_do_nway(struct net_device *dev) struct tulip_private *tp = netdev_priv(dev); void __iomem *ioaddr = tp->base_addr; u32 phy_reg = ioread32(ioaddr + 0xB8); - u32 new_csr6 = tp->csr6 & ~0x40C40200; + u32 new_csr6; if (phy_reg & 0x78000000) { /* Ignore baseT4 */ if (phy_reg & 0x20000000) dev->if_port = 5; |