All of lore.kernel.org
 help / color / mirror / Atom feed
From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] arch: arm: mach-ux500: board-mop500-regulators.c: Remove unused function
Date: Mon, 19 Jan 2015 11:00:57 +0100	[thread overview]
Message-ID: <11128609.Upt8IQGP29@wuerfel> (raw)
In-Reply-To: <20150118180747.GK3574@x1>

On Sunday 18 January 2015 18:07:47 Lee Jones wrote:
> On Fri, 02 Jan 2015, Arnd Bergmann wrote:
> 
> > On Thursday 01 January 2015 16:40:05 Rickard Strandqvist wrote:
> > > Remove the function mop500_regulator_init() that is not used anywhere.
> > > 
> > > This was partially found by using a static code analysis program called cppcheck.
> > > 
> > > Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
> > 
> > This looks wrong: For one thing, you failed to notice that now another function
> > in the same file becomes unused, or that half of the file is not used
> > anyway.
> > 
> > It also seems that the fact that this function is not called was an accident
> > and it should in fact be called. Maybe Lee has some more insight in this,
> > as he added the function in the first place.
> > 
> > Finally (unrelated to your patch, but triggered by looking at it), I suspect
> > we should just move the ab8500_regulator_plat_data and everything it references
> > to drivers/regulator/ab8500-ext.c, because we only have one instance of it
> > and won't ever have more.
> 
> This is old code.  The development of this stuff was halted before it
> could be finished.  Feel free to remove it and all other unused code
> it uncovers.
> 

Thanks for the confirmation!

Richard, do you feel up to doing the task of the broader cleanup here?

	Arnd

WARNING: multiple messages have this Message-ID (diff)
From: Arnd Bergmann <arnd@arndb.de>
To: Lee Jones <lee.jones@linaro.org>
Cc: linux-arm-kernel@lists.infradead.org,
	Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>,
	Linus Walleij <linus.walleij@linaro.org>,
	Russell King <linux@arm.linux.org.uk>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] arch: arm: mach-ux500: board-mop500-regulators.c: Remove unused function
Date: Mon, 19 Jan 2015 11:00:57 +0100	[thread overview]
Message-ID: <11128609.Upt8IQGP29@wuerfel> (raw)
In-Reply-To: <20150118180747.GK3574@x1>

On Sunday 18 January 2015 18:07:47 Lee Jones wrote:
> On Fri, 02 Jan 2015, Arnd Bergmann wrote:
> 
> > On Thursday 01 January 2015 16:40:05 Rickard Strandqvist wrote:
> > > Remove the function mop500_regulator_init() that is not used anywhere.
> > > 
> > > This was partially found by using a static code analysis program called cppcheck.
> > > 
> > > Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
> > 
> > This looks wrong: For one thing, you failed to notice that now another function
> > in the same file becomes unused, or that half of the file is not used
> > anyway.
> > 
> > It also seems that the fact that this function is not called was an accident
> > and it should in fact be called. Maybe Lee has some more insight in this,
> > as he added the function in the first place.
> > 
> > Finally (unrelated to your patch, but triggered by looking at it), I suspect
> > we should just move the ab8500_regulator_plat_data and everything it references
> > to drivers/regulator/ab8500-ext.c, because we only have one instance of it
> > and won't ever have more.
> 
> This is old code.  The development of this stuff was halted before it
> could be finished.  Feel free to remove it and all other unused code
> it uncovers.
> 

Thanks for the confirmation!

Richard, do you feel up to doing the task of the broader cleanup here?

	Arnd

  reply	other threads:[~2015-01-19 10:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-01 15:40 [PATCH] arch: arm: mach-ux500: board-mop500-regulators.c: Remove unused function Rickard Strandqvist
2015-01-01 15:40 ` Rickard Strandqvist
2015-01-02 10:10 ` Arnd Bergmann
2015-01-02 10:10   ` Arnd Bergmann
2015-01-18 18:07   ` Lee Jones
2015-01-18 18:07     ` Lee Jones
2015-01-19 10:00     ` Arnd Bergmann [this message]
2015-01-19 10:00       ` Arnd Bergmann
2015-01-20 23:05       ` Rickard Strandqvist
2015-01-20 23:05         ` Rickard Strandqvist

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=11128609.Upt8IQGP29@wuerfel \
    --to=arnd@arndb.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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.