Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Wang Ming and committed by
David S. Miller
a822551c 4ad23d23

-1
-1
drivers/net/ethernet/wangxun/libwx/wx_hw.c
··· 1511 1511 psrtype = WX_RDB_PL_CFG_L4HDR | 1512 1512 WX_RDB_PL_CFG_L3HDR | 1513 1513 WX_RDB_PL_CFG_L2HDR | 1514 - WX_RDB_PL_CFG_TUN_TUNHDR | 1515 1514 WX_RDB_PL_CFG_TUN_TUNHDR; 1516 1515 wr32(wx, WX_RDB_PL_CFG(0), psrtype); 1517 1516