[<prev] [next>] [day] [month] [year] [list]
Message-ID:
<AS8PR02MB10217782094C222870CC5A7A29C2DA@AS8PR02MB10217.eurprd02.prod.outlook.com>
Date: Wed, 6 Aug 2025 06:03:09 +0000
From: David Binderman <dcb314@...mail.com>
To: "dhowells@...hat.com" <dhowells@...hat.com>, "pc@...guebit.org"
<pc@...guebit.org>, "netfs@...ts.linux.dev" <netfs@...ts.linux.dev>,
"linux-fsdevel@...r.kernel.org" <linux-fsdevel@...r.kernel.org>, Linux Kernel
Mailing List <linux-kernel@...r.kernel.org>
Subject: linux-6.16/fs/netfs/read_collect.c:575: Pointless test ?
Hello there,
Static analyser cppcheck says:
linux-6.16/fs/netfs/read_collect.c:575:28: warning: Identical inner 'if' condition is always true. [identicalInnerCondition]
Source code is
if (transferred_or_error > 0) {
subreq->error = 0;
if (transferred_or_error > 0) {
Suggest remove second test.
Regards
David Binderman
Powered by blists - more mailing lists