summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorWang Ming <machel@vivo.com>2023-07-13 20:16:03 +0800
committerDavid S. Miller <davem@davemloft.net>2023-07-14 09:11:10 +0100
commita822551c51f0dc063305ca16b9dd0dec7fe1f259 (patch)
treed9f435c8bf3882da62899a9cc88ae4e6ba3c293e /drivers
parent4ad23d2368ccce6da74edc74e69300a4d75a2379 (diff)
net: ethernet: Remove repeating expression
Identify issues that arise by using the tests/doublebitand.cocci semantic patch. Need to remove duplicate expression in if statement. Signed-off-by: Wang Ming <machel@vivo.com> Reviewed-by: Jiawen Wu <jiawenwu@trustnetic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/wangxun/libwx/wx_hw.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/wangxun/libwx/wx_hw.c b/drivers/net/ethernet/wangxun/libwx/wx_hw.c
index 39a9aeee7aab..6321178fc814 100644
--- a/drivers/net/ethernet/wangxun/libwx/wx_hw.c
+++ b/drivers/net/ethernet/wangxun/libwx/wx_hw.c
@@ -1511,7 +1511,6 @@ static void wx_configure_rx(struct wx *wx)
psrtype = WX_RDB_PL_CFG_L4HDR |
WX_RDB_PL_CFG_L3HDR |
WX_RDB_PL_CFG_L2HDR |
- WX_RDB_PL_CFG_TUN_TUNHDR |
WX_RDB_PL_CFG_TUN_TUNHDR;
wr32(wx, WX_RDB_PL_CFG(0), psrtype);