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 <[email protected]> Reviewed-by: Jiawen Wu <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 4ad23d2 commit a822551

File tree

1 file changed

+0
-1
lines changed
  • drivers/net/ethernet/wangxun/libwx

1 file changed

+0
-1
lines changed

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)