projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ad23d2
)
net: ethernet: Remove repeating expression
author
Wang Ming
<machel@vivo.com>
Thu, 13 Jul 2023 12:16:03 +0000
(20:16 +0800)
committer
David S. Miller
<davem@davemloft.net>
Fri, 14 Jul 2023 08:11:10 +0000
(09:11 +0100)
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>
drivers/net/ethernet/wangxun/libwx/wx_hw.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/wangxun/libwx/wx_hw.c
b/drivers/net/ethernet/wangxun/libwx/wx_hw.c
index
39a9aee
..
6321178
100644
(file)
--- 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);