All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [linux-next:master 4221/14229] arch/arm/mach-pxa/pxa27x.c:273:5-8: Unneeded variable: "ret". Return "0" on line 284
Date: Thu, 03 Dec 2026 01:23:29 +0100	[thread overview]
Message-ID: <20261203012233.Sum24OgN-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   799dd936553182df5770dde7f38d94c8337df75a
commit: 71a0ba7b39ad4882141bd01d8e526ffbc6995610 [4221/14229] ARM: remove legacy pxa board files
config: arm-randconfig-r2105-20261202 (https://download.01.org/0day-ci/archive/20261203/20261203012233.Sum24OgN-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 31d2179357f4fa69013af12b6480307c9ce750d4)

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/20261203012233.Sum24OgN-lkp@intel.com/

cocci warnings: (new ones prefixed by >>)
>> arch/arm/mach-pxa/pxa27x.c:273:5-8: Unneeded variable: "ret". Return "0" on line 284

vim +273 arch/arm/mach-pxa/pxa27x.c

851982c1b6ca18 Marek Vasut       2010-10-11  270  
^1da177e4c3f41 Linus Torvalds    2005-04-16  271  static int __init pxa27x_init(void)
^1da177e4c3f41 Linus Torvalds    2005-04-16  272  {
2eaa03b5bebd1e Rafael J. Wysocki 2011-04-22 @273  	int ret = 0;
c016550490687c eric miao         2008-01-28  274  
e176bb05fec4c0 Russell King      2007-05-15  275  	if (cpu_is_pxa27x()) {
e86bd43bcfc579 Arnd Bergmann     2019-09-08  276  		pxa_register_wdt(RCSR);
04fef228fb00dd Eric Miao         2008-07-29  277  
711be5ccfe9a02 Eric Miao         2007-07-18  278  		pxa27x_init_pm();
f79299ca85f6f8 eric miao         2008-01-02  279  
a97fbc3ee3e2a5 Thierry Reding    2025-10-29  280  		register_syscore(&pxa_irq_syscore);
a97fbc3ee3e2a5 Thierry Reding    2025-10-29  281  		register_syscore(&pxa2xx_mfp_syscore);
e176bb05fec4c0 Russell King      2007-05-15  282  	}
c016550490687c eric miao         2008-01-28  283  
e176bb05fec4c0 Russell King      2007-05-15 @284  	return ret;
^1da177e4c3f41 Linus Torvalds    2005-04-16  285  }
^1da177e4c3f41 Linus Torvalds    2005-04-16  286  

:::::: The code at line 273 was first introduced by commit
:::::: 2eaa03b5bebd1e80014f780d7bf27c3e66daefd6 ARM / PXA: Use struct syscore_ops for "core" power management

:::::: TO: Rafael J. Wysocki <rjw@sisk.pl>
:::::: CC: Rafael J. Wysocki <rjw@sisk.pl>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2026-12-03  0:23 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=20261203012233.Sum24OgN-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=arnd@arndb.de \
    --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 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.