linux-6.16/fs/netfs/read_collect.c:575: Pointless test ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux