drivers/regulator/mt6363-regulator.c:366:2-3: Unneeded semicolon
From: kernel test robot
Date: Fri Sep 25 2026 - 17:09:03 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 165768bb70265b5c38cf0b73fafd75be235f8b14
commit: 3c36965df80801344850388592e95033eceea05b regulator: Add support for MediaTek MT6363 SPMI PMIC Regulators
date: 11 months ago
config: i386-randconfig-2100-20260925 (https://download.01.org/0day-ci/archive/20260925/202609252049.3VHQla9a-lkp@xxxxxxxxx/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.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
| Fixes: 3c36965df808 ("regulator: Add support for MediaTek MT6363 SPMI PMIC Regulators")
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202609252049.3VHQla9a-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