All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-next:master 5979/13068] drivers/pinctrl/meson/pinctrl-amlogic-a4.c:859:2-3: Unneeded semicolon
@ 2025-03-21 15:54 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-03-21 15:54 UTC (permalink / raw)
  To: Xianwei Zhao; +Cc: oe-kbuild-all, Linus Walleij

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   9388ec571cb1adba59d1cded2300eeb11827679c
commit: 6e9be3abb78c2f6c97a51070004a5165702f0ed9 [5979/13068] pinctrl: Add driver support for Amlogic SoCs
config: arm64-randconfig-r051-20250321 (https://download.01.org/0day-ci/archive/20250321/202503212354.Hx2qaDRe-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
rustc: rustc 1.78.0 (9b00956e5 2024-04-29)

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/202503212354.Hx2qaDRe-lkp@intel.com/

cocci warnings: (new ones prefixed by >>)
>> drivers/pinctrl/meson/pinctrl-amlogic-a4.c:859:2-3: Unneeded semicolon

vim +859 drivers/pinctrl/meson/pinctrl-amlogic-a4.c

   842	
   843	static void init_bank_register_bit(struct aml_pinctrl *info,
   844					   struct aml_gpio_bank *bank)
   845	{
   846		const struct aml_pctl_data *data = info->data;
   847		const struct aml_reg_bit *aml_rb;
   848		bool def_offs = true;
   849		int i;
   850	
   851		if (data) {
   852			for (i = 0; i < data->number; i++) {
   853				aml_rb = &data->rb_offs[i];
   854				if (bank->bank_id == aml_rb->bank_id) {
   855					def_offs = false;
   856					break;
   857				}
   858			}
 > 859		};
   860	
   861		if (def_offs) {
   862			for (i = 0; i < AML_NUM_REG; i++) {
   863				bank->pc.reg_offset[i] = aml_def_regoffs[i];
   864				bank->pc.bit_offset[i] = 0;
   865			}
   866		} else {
   867			for (i = 0; i < AML_NUM_REG; i++) {
   868				bank->pc.reg_offset[i] = aml_rb->reg_offs[i];
   869				bank->pc.bit_offset[i] = aml_rb->bit_offs[i];
   870			}
   871		}
   872	}
   873	

-- 
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:[~2025-03-21 15:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-21 15:54 [linux-next:master 5979/13068] drivers/pinctrl/meson/pinctrl-amlogic-a4.c:859:2-3: Unneeded semicolon kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.