mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* drivers/regulator/mt6363-regulator.c:366:2-3: Unneeded semicolon
@ 2026-02-16 13:10 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-02-16 13:10 UTC (permalink / raw)
  To: AngeloGioacchino Del Regno; +Cc: oe-kbuild-all, linux-kernel, Mark Brown

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@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202602162128.oEWL6gzQ-lkp@intel.com/

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-02-16 13:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-16 13:10 drivers/regulator/mt6363-regulator.c:366:2-3: Unneeded semicolon kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®