mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
	Mark Brown <broonie@kernel.org>
Subject: drivers/regulator/mt6363-regulator.c:366:2-3: Unneeded semicolon
Date: Mon, 16 Feb 2026 21:10:47 +0800	[thread overview]
Message-ID: <202602162128.oEWL6gzQ-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-02-16 13:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202602162128.oEWL6gzQ-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=angelogioacchino.delregno@collabora.com \
    --cc=broonie@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®