Re: [PATCH -next] selftests: cgroup: Remove redundant if statements

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

 



On Mon, Jul 31, 2023 at 09:42:05PM +0800, Li Zetao wrote:
> There is a warning reported by coccinelle:
> 
> ./tools/testing/selftests/cgroup/test_zswap.c:211:6-18: WARNING:
> 		Unsigned expression compared with zero: stored_pages     <     0
> 
> The type of "stored_pages" is size_t, which always be an unsigned type,
> so it is impossible less than zero. Drop the if statements to silence
> the warning.
> 
> Signed-off-by: Li Zetao <lizetao1@xxxxxxxxxx>

Looks fine to me but the zswap test addition is going through akpm's tree, I
think, so probably best to repost it to Andrew.

Thanks.

-- 
tejun



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux