drivers/regulator/mt6363-regulator.c:366:2-3: Unneeded semicolon
From: kernel test robot
Date: Mon Feb 16 2026 - 08:11:20 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 0f2acd3148e0ef42bdacbd477f90e8533f96b2ac
commit: 3c36965df80801344850388592e95033eceea05b regulator: Add support for MediaTek MT6363 SPMI PMIC Regulators
date: 3 months ago
config: powerpc-randconfig-r053-20260216 (https://download.01.org/0day-ci/archive/20260216/202602162128.oEWL6gzQ-lkp@xxxxxxxxx/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project afd4df07ab0262482829d4410a6bae9f2809d37b)
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/202602162128.oEWL6gzQ-lkp@xxxxxxxxx/
cocci warnings: (new ones prefixed by >>)
>> drivers/regulator/mt6363-regulator.c:366:2-3: Unneeded semicolon
drivers/regulator/mt6363-regulator.c:843:2-3: Unneeded semicolon
vim +366 drivers/regulator/mt6363-regulator.c
348
349 static unsigned int mt6363_regulator_get_mode(struct regulator_dev *rdev)
350 {
351 struct mt6363_regulator_info *info = rdev_get_drvdata(rdev);
352 unsigned int val;
353 int ret;
354
355 if (info->modeset_reg) {
356 ret = regmap_read(rdev->regmap, info->modeset_reg, &val);
357 if (ret) {
358 dev_err(&rdev->dev, "Failed to get mt6363 mode: %d\n", ret);
359 return ret;
360 }
361
362 if (val & info->modeset_mask)
363 return REGULATOR_MODE_FAST;
364 } else {
365 val = 0;
> 366 };
367
368 ret = regmap_read(rdev->regmap, info->hw_lp_mode_reg, &val);
369 val &= info->hw_lp_mode_mask;
370
371 if (ret) {
372 dev_err(&rdev->dev, "Failed to get lp mode: %d\n", ret);
373 return ret;
374 }
375
376 if (val)
377 return REGULATOR_MODE_IDLE;
378 else
379 return REGULATOR_MODE_NORMAL;
380 }
381
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki