linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] spi: s3c64xx: Clean up redundant dev_err_probe()
@ 2023-07-27 13:16 Chen Jiahao
  2023-07-27 13:30 ` Andi Shyti
  2023-07-27 19:32 ` Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Chen Jiahao @ 2023-07-27 13:16 UTC (permalink / raw)
  To: andi.shyti, broonie, krzysztof.kozlowski, alim.akhtar, linux-spi,
	linux-samsung-soc, linux-arm-kernel
  Cc: chenjiahao16

Referring to platform_get_irq()'s definition, the return value has
already been checked if ret < 0, and printed via dev_err_probe().
Calling dev_err_probe() one more time outside platform_get_irq()
is obviously redundant.

Removing dev_err_probe() outside platform_get_irq() to clean up
above problem.

Signed-off-by: Chen Jiahao <chenjiahao16@huawei.com>
---
 drivers/spi/spi-s3c64xx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c
index a1b68fdc205d..bf7cb18be9dc 100644
--- a/drivers/spi/spi-s3c64xx.c
+++ b/drivers/spi/spi-s3c64xx.c
@@ -1167,7 +1167,7 @@ static int s3c64xx_spi_probe(struct platform_device *pdev)
 
 	irq = platform_get_irq(pdev, 0);
 	if (irq < 0)
-		return dev_err_probe(&pdev->dev, irq, "Failed to get IRQ\n");
+		return irq;
 
 	master = devm_spi_alloc_master(&pdev->dev, sizeof(*sdd));
 	if (!master)
-- 
2.34.1


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

* Re: [PATCH -next] spi: s3c64xx: Clean up redundant dev_err_probe()
  2023-07-27 13:16 [PATCH -next] spi: s3c64xx: Clean up redundant dev_err_probe() Chen Jiahao
@ 2023-07-27 13:30 ` Andi Shyti
  2023-07-27 19:32 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Andi Shyti @ 2023-07-27 13:30 UTC (permalink / raw)
  To: Chen Jiahao
  Cc: broonie, krzysztof.kozlowski, alim.akhtar, linux-spi,
	linux-samsung-soc, linux-arm-kernel

Hi Chen,

On Thu, Jul 27, 2023 at 09:16:35PM +0800, Chen Jiahao wrote:
> Referring to platform_get_irq()'s definition, the return value has
> already been checked if ret < 0, and printed via dev_err_probe().
> Calling dev_err_probe() one more time outside platform_get_irq()
> is obviously redundant.
> 
> Removing dev_err_probe() outside platform_get_irq() to clean up
> above problem.
> 
> Signed-off-by: Chen Jiahao <chenjiahao16@huawei.com>

Reviewed-by: Andi Shyti <andi.shyti@kernel.org> 

Thanks,
Andi

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

* Re: [PATCH -next] spi: s3c64xx: Clean up redundant dev_err_probe()
  2023-07-27 13:16 [PATCH -next] spi: s3c64xx: Clean up redundant dev_err_probe() Chen Jiahao
  2023-07-27 13:30 ` Andi Shyti
@ 2023-07-27 19:32 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2023-07-27 19:32 UTC (permalink / raw)
  To: andi.shyti, krzysztof.kozlowski, alim.akhtar, linux-spi,
	linux-samsung-soc, linux-arm-kernel, Chen Jiahao

On Thu, 27 Jul 2023 21:16:35 +0800, Chen Jiahao wrote:
> Referring to platform_get_irq()'s definition, the return value has
> already been checked if ret < 0, and printed via dev_err_probe().
> Calling dev_err_probe() one more time outside platform_get_irq()
> is obviously redundant.
> 
> Removing dev_err_probe() outside platform_get_irq() to clean up
> above problem.
> 
> [...]

Applied to

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

Thanks!

[1/1] spi: s3c64xx: Clean up redundant dev_err_probe()
      commit: b2b561757027ef03b1243c828820a9004458194c

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] 3+ messages in thread

end of thread, other threads:[~2023-07-27 19:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-27 13:16 [PATCH -next] spi: s3c64xx: Clean up redundant dev_err_probe() Chen Jiahao
2023-07-27 13:30 ` Andi Shyti
2023-07-27 19:32 ` 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).