fs/bcachefs/debug.c:421:5-8: Unneeded variable: "ret". Return " 0" on line 424

From: kernel test robot
Date: Sun Dec 31 2023 - 20:05:36 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 610a9b8f49fbcf1100716370d3b5f6f884a2835a
commit: 1c6fdbd8f2465ddfb73a01ec620cbf3d14044e1a bcachefs: Initial commit
date: 2 months ago
config: x86_64-randconfig-r064-20231231 (https://download.01.org/0day-ci/archive/20240101/202401010853.ASDxctCq-lkp@xxxxxxxxx/config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0

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
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202401010853.ASDxctCq-lkp@xxxxxxxxx/

cocci warnings: (new ones prefixed by >>)
>> fs/bcachefs/debug.c:421:5-8: Unneeded variable: "ret". Return " 0" on line 424
--
>> fs/bcachefs/super.c:712:35-36: Unneeded semicolon

vim +421 fs/bcachefs/debug.c

418
419 int __init bch2_debug_init(void)
420 {
> 421 int ret = 0;
422
423 bch_debug = debugfs_create_dir("bcachefs", NULL);
> 424 return ret;

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki