All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next] spi: altera: Remove redundant dev_err call in dfl_spi_altera_probe()
@ 2021-05-11  7:08 Zou Wei
  2021-05-11 18:21 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Zou Wei @ 2021-05-11  7:08 UTC (permalink / raw)
  To: broonie; +Cc: linux-spi, linux-kernel, Zou Wei

There is a error message within devm_ioremap_resource
already, so remove the dev_err call to avoid redundant
error message.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
---
 drivers/spi/spi-altera-dfl.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/spi/spi-altera-dfl.c b/drivers/spi/spi-altera-dfl.c
index 3e32e4f..39a3e1a 100644
--- a/drivers/spi/spi-altera-dfl.c
+++ b/drivers/spi/spi-altera-dfl.c
@@ -148,10 +148,8 @@ static int dfl_spi_altera_probe(struct dfl_device *dfl_dev)
 
 	base = devm_ioremap_resource(dev, &dfl_dev->mmio_res);
 
-	if (IS_ERR(base)) {
-		dev_err(dev, "%s get mem resource fail!\n", __func__);
+	if (IS_ERR(base))
 		return PTR_ERR(base);
-	}
 
 	config_spi_master(base, master);
 	dev_dbg(dev, "%s cs %u bpm 0x%x mode 0x%x\n", __func__,
-- 
2.6.2


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

* Re: [PATCH -next] spi: altera: Remove redundant dev_err call in dfl_spi_altera_probe()
  2021-05-11  7:08 [PATCH -next] spi: altera: Remove redundant dev_err call in dfl_spi_altera_probe() Zou Wei
@ 2021-05-11 18:21 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2021-05-11 18:21 UTC (permalink / raw)
  To: Zou Wei; +Cc: Mark Brown, linux-spi, linux-kernel

On Tue, 11 May 2021 15:08:42 +0800, Zou Wei wrote:
> There is a error message within devm_ioremap_resource
> already, so remove the dev_err call to avoid redundant
> error message.

Applied to

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

Thanks!

[1/1] spi: altera: Remove redundant dev_err call in dfl_spi_altera_probe()
      commit: 532259bfd1c12d561215c32b94cd9bb7c997bc6f

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

end of thread, other threads:[~2021-05-11 18:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-11  7:08 [PATCH -next] spi: altera: Remove redundant dev_err call in dfl_spi_altera_probe() Zou Wei
2021-05-11 18:21 ` Mark Brown

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.