[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <bb884a72-84e3-0c63-9d19-35caa297ec45@microchip.com>
Date: Mon, 29 Mar 2021 07:32:22 +0000
From: <Codrin.Ciubotariu@...rochip.com>
To: <pierre-louis.bossart@...ux.intel.com>,
<alsa-devel@...a-project.org>
CC: <tiwai@...e.de>, <broonie@...nel.org>,
<linux-kernel@...r.kernel.org>, <lgirdwood@...il.com>,
<perex@...ex.cz>, <tiwai@...e.com>, <Nicolas.Ferre@...rochip.com>,
<alexandre.belloni@...tlin.com>, <Ludovic.Desroches@...rochip.com>,
<linux-arm-kernel@...ts.infradead.org>
Subject: Re: [PATCH 03/17] ASoC: atmel: atmel-i2s: remove useless
initialization
On 26.03.2021 23:59, Pierre-Louis Bossart wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>
> Cppcheck complains:
>
> sound/soc/atmel/atmel-i2s.c:628:6: style: Redundant initialization for 'err'. The initialized value is overwritten before it is read. [redundantInitialization]
> err = devm_request_irq(&pdev->dev, irq, atmel_i2s_interrupt, 0,
> ^
> sound/soc/atmel/atmel-i2s.c:598:10: note: err is initialized
> int err = -ENXIO;
> ^
> sound/soc/atmel/atmel-i2s.c:628:6: note: err is overwritten
> err = devm_request_irq(&pdev->dev, irq, atmel_i2s_interrupt, 0,
> ^
>
> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@...ux.intel.com>
Reviewed-by: Codrin Ciubotariu <codrin.ciubotariu@...rochip.com>
Thanks!
Powered by blists - more mailing lists