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: Mon, 26 Apr 2021 18:10:49 +0800 From: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com> To: davem@...emloft.net Cc: kuba@...nel.org, netdev@...r.kernel.org, linux-kernel@...r.kernel.org, Jiapeng Chong <jiapeng.chong@...ux.alibaba.com> Subject: [PATCH] caif: Remove redundant variable expectlen Variable expectlen is being assigned a value from a calculation however the variable is never read, so this redundant variable can be removed. Cleans up the following clang-analyzer warning: net/caif/cfserl.c:126:5: warning: Value stored to 'expectlen' is never read [clang-analyzer-deadcode.DeadStores]. Reported-by: Abaci Robot <abaci@...ux.alibaba.com> Signed-off-by: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com> --- net/caif/cfserl.c | 1 - 1 file changed, 1 deletion(-) diff --git a/net/caif/cfserl.c b/net/caif/cfserl.c index e11725a..fef72e6 100644 --- a/net/caif/cfserl.c +++ b/net/caif/cfserl.c @@ -123,7 +123,6 @@ static int cfserl_receive(struct cflayer *l, struct cfpkt *newpkt) if (pkt != NULL) cfpkt_destroy(pkt); layr->incomplete_frm = NULL; - expectlen = 0; spin_unlock(&layr->sync); return -EPROTO; } -- 1.8.3.1
Powered by blists - more mailing lists