lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Thu, 4 Nov 2021 02:17:32 +0000 From: luo penghao <cgel.zte@...il.com> To: "David S . Miller" <davem@...emloft.net> Cc: Hideaki YOSHIFUJI <yoshfuji@...ux-ipv6.org>, David Ahern <dsahern@...nel.org>, Jakub Kicinski <kuba@...nel.org>, netdev@...r.kernel.org, linux-kernel@...r.kernel.org, luo penghao <luo.penghao@....com.cn>, Zeal Robot <zealci@....com.cn> Subject: [PATCH linux-next] ipv4: Remove useless assignments The assigned local variables will not be used next, so this statement should be deleted. The clang_analyzer complains as follows: net/ipv4/ipconfig.c:1037:2 warning: Value stored to 'h' is never read Reported-by: Zeal Robot <zealci@....com.cn> Signed-off-by: luo penghao <luo.penghao@....com.cn> --- net/ipv4/ipconfig.c | 1 - 1 file changed, 1 deletion(-) diff --git a/net/ipv4/ipconfig.c b/net/ipv4/ipconfig.c index 816d8aa..fe2c8e9 100644 --- a/net/ipv4/ipconfig.c +++ b/net/ipv4/ipconfig.c @@ -1034,7 +1034,6 @@ static int __init ic_bootp_recv(struct sk_buff *skb, struct net_device *dev, str goto drop; b = (struct bootp_pkt *)skb_network_header(skb); - h = &b->iph; /* One reply at a time, please. */ spin_lock(&ic_recv_lock); -- 2.15.2
Powered by blists - more mailing lists