linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] regulator: mt6360: remove redundant error print
@ 2021-03-23 12:22 Jian Dong
  2021-03-23 17:16 ` Mark Brown
  2021-03-24 23:39 ` Mark Brown
  0 siblings, 2 replies; 4+ messages in thread
From: Jian Dong @ 2021-03-23 12:22 UTC (permalink / raw)
  To: matthias.bgg, broonie
  Cc: linux-kernel, linux-arm-kernel, linux-mediatek, huyue2, Jian Dong

From: Jian Dong <dongjian@yulong.com>

fixes coccicheck warning:

drivers/regulator/mt6360-regulator.c:384:3-10: line 384 is
redundant because platform_get_irq() already prints an error

in fact, it is not platform_get_irq but platform_get_irq_byname print error

Signed-off-by: Jian Dong <dongjian@yulong.com>
---
 drivers/regulator/mt6360-regulator.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/regulator/mt6360-regulator.c b/drivers/regulator/mt6360-regulator.c
index 947350d..178180c 100644
--- a/drivers/regulator/mt6360-regulator.c
+++ b/drivers/regulator/mt6360-regulator.c
@@ -380,10 +380,8 @@ static int mt6360_regulator_irq_register(struct platform_device *pdev,
 		const struct mt6360_irq_mapping *irq_desc = tbls + i;
 
 		irq = platform_get_irq_byname(pdev, irq_desc->name);
-		if (irq < 0) {
-			dev_err(&pdev->dev, "Fail to get %s irq\n", irq_desc->name);
+		if (irq < 0)
 			return irq;
-		}
 
 		ret = devm_request_threaded_irq(&pdev->dev, irq, NULL, irq_desc->handler,
 					IRQF_ONESHOT, irq_desc->name, rdev);
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] regulator: mt6360: remove redundant error print
  2021-03-23 12:22 [PATCH] regulator: mt6360: remove redundant error print Jian Dong
@ 2021-03-23 17:16 ` Mark Brown
  2021-03-24  1:24   ` Jian Dong
  2021-03-24 23:39 ` Mark Brown
  1 sibling, 1 reply; 4+ messages in thread
From: Mark Brown @ 2021-03-23 17:16 UTC (permalink / raw)
  To: Jian Dong
  Cc: matthias.bgg, linux-kernel, linux-arm-kernel, linux-mediatek,
	huyue2, Jian Dong

[-- Attachment #1: Type: text/plain, Size: 589 bytes --]

On Tue, Mar 23, 2021 at 08:22:41PM +0800, Jian Dong wrote:
> From: Jian Dong <dongjian@yulong.com>
> 
> fixes coccicheck warning:
> 
> drivers/regulator/mt6360-regulator.c:384:3-10: line 384 is
> redundant because platform_get_irq() already prints an error

This doesn't apply against current code, please check and resend.

Applying: regulator: mt6360: remove redundant error print
error: sha1 information is lacking or useless (drivers/regulator/mt6360-regulator.c).
error: could not build fake ancestor
Patch failed at 0001 regulator: mt6360: remove redundant error print

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] regulator: mt6360: remove redundant error print
  2021-03-23 17:16 ` Mark Brown
@ 2021-03-24  1:24   ` Jian Dong
  0 siblings, 0 replies; 4+ messages in thread
From: Jian Dong @ 2021-03-24  1:24 UTC (permalink / raw)
  To: Mark Brown
  Cc: matthias.bgg, linux-kernel, linux-arm-kernel, linux-mediatek,
	huyue2, Jian Dong

On Tue, 23 Mar 2021 17:16:28 +0000
Mark Brown <broonie@kernel.org> wrote:

> On Tue, Mar 23, 2021 at 08:22:41PM +0800, Jian Dong wrote:
> > From: Jian Dong <dongjian@yulong.com>
> > 
> > fixes coccicheck warning:
> > 
> > drivers/regulator/mt6360-regulator.c:384:3-10: line 384 is
> > redundant because platform_get_irq() already prints an error  
> 
> This doesn't apply against current code, please check and resend.
> 
> Applying: regulator: mt6360: remove redundant error print
> error: sha1 information is lacking or useless
> (drivers/regulator/mt6360-regulator.c). error: could not build fake
> ancestor Patch failed at 0001 regulator: mt6360: remove redundant
> error print

Hi 

I find the problem, before this patch, I had commit a patch 
"[PATCH]regulator: Use IRQF_ONESHOT", and it hasn't be accepted now, So
the current code is different.

I will modify and resend later.  


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] regulator: mt6360: remove redundant error print
  2021-03-23 12:22 [PATCH] regulator: mt6360: remove redundant error print Jian Dong
  2021-03-23 17:16 ` Mark Brown
@ 2021-03-24 23:39 ` Mark Brown
  1 sibling, 0 replies; 4+ messages in thread
From: Mark Brown @ 2021-03-24 23:39 UTC (permalink / raw)
  To: Jian Dong, matthias.bgg
  Cc: Mark Brown, linux-kernel, Jian Dong, linux-arm-kernel, huyue2,
	linux-mediatek

On Tue, 23 Mar 2021 20:22:41 +0800, Jian Dong wrote:
> fixes coccicheck warning:
> 
> drivers/regulator/mt6360-regulator.c:384:3-10: line 384 is
> redundant because platform_get_irq() already prints an error
> 
> in fact, it is not platform_get_irq but platform_get_irq_byname print error

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next

Thanks!

[1/1] regulator: mt6360: remove redundant error print
      commit: f56f2b953bccabb9bd283a734c7e35a1bb1c1ff8

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-03-24 23:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-23 12:22 [PATCH] regulator: mt6360: remove redundant error print Jian Dong
2021-03-23 17:16 ` Mark Brown
2021-03-24  1:24   ` Jian Dong
2021-03-24 23:39 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).