All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] ASoC: tegra20-ac97: Remove duplicate error message
@ 2013-06-28 19:53 Thierry Reding
       [not found] ` <1372449205-22231-1-git-send-email-thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  2013-06-29  9:55 ` [PATCH 1/2] ASoC: tegra20-ac97: Remove duplicate error message Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Thierry Reding @ 2013-06-28 19:53 UTC (permalink / raw)
  To: Mark Brown
  Cc: Stephen Warren, Liam Girdwood, alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw,
	linux-tegra-u79uwXL29TY76Z2rM5mHXA

devm_ioremap_resource() already outputs an error message when any of the
operations it performs fails, so the duplicate in the caller can be
removed.

Signed-off-by: Thierry Reding <thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
 sound/soc/tegra/tegra20_ac97.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/sound/soc/tegra/tegra20_ac97.c b/sound/soc/tegra/tegra20_ac97.c
index 9043626d..c1f08f3 100644
--- a/sound/soc/tegra/tegra20_ac97.c
+++ b/sound/soc/tegra/tegra20_ac97.c
@@ -344,7 +344,6 @@ static int tegra20_ac97_platform_probe(struct platform_device *pdev)
 	regs = devm_ioremap_resource(&pdev->dev, mem);
 	if (IS_ERR(regs)) {
 		ret = PTR_ERR(regs);
-		dev_err(&pdev->dev, "ioremap failed: %d\n", ret);
 		goto err_clk_put;
 	}
 
-- 
1.8.3.1

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

* [PATCH 2/2] ASoC: tegra20-ac97: Remove unused variable
       [not found] ` <1372449205-22231-1-git-send-email-thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2013-06-28 19:53   ` Thierry Reding
  0 siblings, 0 replies; 3+ messages in thread
From: Thierry Reding @ 2013-06-28 19:53 UTC (permalink / raw)
  To: Mark Brown
  Cc: Stephen Warren, Liam Girdwood, alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw,
	linux-tegra-u79uwXL29TY76Z2rM5mHXA

With the conversion to devm_ioremap_resource() the memregion variable is
no longer used so it can be dropped.

Signed-off-by: Thierry Reding <thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
 sound/soc/tegra/tegra20_ac97.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/tegra/tegra20_ac97.c b/sound/soc/tegra/tegra20_ac97.c
index c1f08f3..0fef1b4 100644
--- a/sound/soc/tegra/tegra20_ac97.c
+++ b/sound/soc/tegra/tegra20_ac97.c
@@ -313,7 +313,7 @@ static const struct regmap_config tegra20_ac97_regmap_config = {
 static int tegra20_ac97_platform_probe(struct platform_device *pdev)
 {
 	struct tegra20_ac97 *ac97;
-	struct resource *mem, *memregion;
+	struct resource *mem;
 	u32 of_dma[2];
 	void __iomem *regs;
 	int ret = 0;
-- 
1.8.3.1

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

* Re: [PATCH 1/2] ASoC: tegra20-ac97: Remove duplicate error message
  2013-06-28 19:53 [PATCH 1/2] ASoC: tegra20-ac97: Remove duplicate error message Thierry Reding
       [not found] ` <1372449205-22231-1-git-send-email-thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2013-06-29  9:55 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2013-06-29  9:55 UTC (permalink / raw)
  To: Thierry Reding; +Cc: linux-tegra, alsa-devel, Liam Girdwood, Stephen Warren


[-- Attachment #1.1: Type: text/plain, Size: 243 bytes --]

On Fri, Jun 28, 2013 at 09:53:24PM +0200, Thierry Reding wrote:
> devm_ioremap_resource() already outputs an error message when any of the
> operations it performs fails, so the duplicate in the caller can be
> removed.

Applied both, thanks.

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



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

end of thread, other threads:[~2013-06-29  9:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-28 19:53 [PATCH 1/2] ASoC: tegra20-ac97: Remove duplicate error message Thierry Reding
     [not found] ` <1372449205-22231-1-git-send-email-thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-06-28 19:53   ` [PATCH 2/2] ASoC: tegra20-ac97: Remove unused variable Thierry Reding
2013-06-29  9:55 ` [PATCH 1/2] ASoC: tegra20-ac97: Remove duplicate error message 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.