]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: fix boolreturn.cocci warnings
authorkernel test robot <lkp@intel.com>
Thu, 11 Feb 2021 01:27:31 +0000 (17:27 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 11 Feb 2021 01:28:13 +0000 (17:28 -0800)
commit96bea9615427b0d64d7df59ac195a49674473efe
tree9b7e9af7a88f7d329b538df3170183794d09da9b
parentff3c1cfb4eb52fcc47f47bc997b9f77733a5dc7e
xfs: fix boolreturn.cocci warnings

fs/xfs/xfs_log.c:1062:9-10: WARNING: return of 0/1 in function 'xfs_log_need_covered' with return type bool

 Return statements in functions returning bool should use
 true/false instead of 1/0.
Generated by: scripts/coccinelle/misc/boolreturn.cocci

Fixes: d4845556a78b ("xfs: lift writable fs check up into log worker task")
CC: Brian Foster <bfoster@redhat.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/xfs_log.c