Search Linux Wireless

[PATCH 2/2] net/phy,neterion: Remove dead values

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Coverity-ID: 1269173, 1575053
Signed-off-by: Ariel Otilibili <ariel.otilibili-anieli@xxxxxxxxxx>
---
 drivers/net/ethernet/neterion/s2io.c     | 2 --
 drivers/net/phy/nxp-c45-tja11xx-macsec.c | 1 -
 2 files changed, 3 deletions(-)

diff --git a/drivers/net/ethernet/neterion/s2io.c b/drivers/net/ethernet/neterion/s2io.c
index f8016dc25e0a..4f89f9fd8043 100644
--- a/drivers/net/ethernet/neterion/s2io.c
+++ b/drivers/net/ethernet/neterion/s2io.c
@@ -1969,8 +1969,6 @@ static void en_dis_err_alarms(struct s2io_nic *nic, u16 mask, int flag)
 				   MC_ERR_REG_ECC_ALL_DBL | PLL_LOCK_N, flag,
 				   &bar0->mc_err_mask);
 	}
-	nic->general_int_mask = gen_int_mask;
-
 	/* Remove this line when alarm interrupts are enabled */
 	nic->general_int_mask = 0;
 }
diff --git a/drivers/net/phy/nxp-c45-tja11xx-macsec.c b/drivers/net/phy/nxp-c45-tja11xx-macsec.c
index 550ef08970f4..e15ab9ba2f50 100644
--- a/drivers/net/phy/nxp-c45-tja11xx-macsec.c
+++ b/drivers/net/phy/nxp-c45-tja11xx-macsec.c
@@ -818,7 +818,6 @@ static void nxp_c45_rx_sc_update(struct phy_device *phydev,
 	u32 cfg = 0;
 
 	nxp_c45_macsec_read(phydev, MACSEC_RXSC_CFG, &cfg);
-	cfg &= ~MACSEC_RXSC_CFG_VF_MASK;
 	cfg = phy_secy->secy->validate_frames << MACSEC_RXSC_CFG_VF_OFF;
 
 	phydev_dbg(phydev, "validate frames %u\n",
-- 
2.47.1





[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux