Re: fs/ntfs/runlist.c:1953:47-52: WARNING: conversion to bool not needed here

From: Namjae Jeon

Date: Thu May 21 2026 - 01:02:16 EST


On Thu, May 21, 2026 at 1:40 PM kernel test robot <lkp@xxxxxxxxx> wrote:
>
> Hi Namjae,
Hi,
>
> First bad commit (maybe != root cause):
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: 8bc67e4db64aa72732c474b44ea8622062c903f0
> commit: 47503f989736d6c4c9f8bfca1c28d267473ccd4b ntfs: add Kconfig and Makefile
> date: 3 months ago
> config: um-randconfig-r063-20260521 (https://download.01.org/0day-ci/archive/20260521/202605211248.DSL7pell-lkp@xxxxxxxxx/config)
> compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
>
> If you fix the issue in a separate patch/commit (i.e. not just a new version of
> the same patch/commit), kindly add following tags
> | Fixes: 47503f989736 ("ntfs: add Kconfig and Makefile")
> | Reported-by: kernel test robot <lkp@xxxxxxxxx>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202605211248.DSL7pell-lkp@xxxxxxxxx/
>
> cocci warnings: (new ones prefixed by >>)
> >> fs/ntfs/runlist.c:1953:47-52: WARNING: conversion to bool not needed here
> fs/ntfs/runlist.c:1961:62-67: WARNING: conversion to bool not needed here
> fs/ntfs/runlist.c:1964:65-70: WARNING: conversion to bool not needed here
> fs/ntfs/runlist.c:1802:47-52: WARNING: conversion to bool not needed here
> fs/ntfs/runlist.c:1810:62-67: WARNING: conversion to bool not needed here
> fs/ntfs/runlist.c:1813:65-70: WARNING: conversion to bool not needed here
> --
> >> fs/ntfs/logfile.c:626:2-8: WARNING: NULL check before some freeing functions is not needed.
> --
> >> fs/ntfs/super.c:2519:2-8: WARNING: NULL check before some freeing functions is not needed.
> fs/ntfs/super.c:1731:2-8: WARNING: NULL check before some freeing functions is not needed.
Okay, I will fix them.
Thanks!