Skip to content

Commit a822551

Browse files
Wang Mingdavem330
authored andcommitted
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>
1 parent 4ad23d2 commit a822551

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

  • drivers/net/ethernet/wangxun/libwx

drivers/net/ethernet/wangxun/libwx/wx_hw.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1511,7 +1511,6 @@ static void wx_configure_rx(struct wx *wx)
15111511
psrtype = WX_RDB_PL_CFG_L4HDR |
15121512
WX_RDB_PL_CFG_L3HDR |
15131513
WX_RDB_PL_CFG_L2HDR |
1514-
WX_RDB_PL_CFG_TUN_TUNHDR |
15151514
WX_RDB_PL_CFG_TUN_TUNHDR;
15161515
wr32(wx, WX_RDB_PL_CFG(0), psrtype);
15171516

0 commit comments

Comments
 (0)