[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <576fbe04-bef0-171d-a1eb-40c6cbb2874e@broadcom.com>
Date: Thu, 8 Mar 2018 12:15:22 -0800
From: Scott Branden <scott.branden@...adcom.com>
To: Colin King <colin.king@...onical.com>,
Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>,
Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>, Ray Jui <rjui@...adcom.com>,
Scott Branden <sbranden@...adcom.com>,
Jon Mason <jonmason@...adcom.com>,
bcm-kernel-feedback-list@...adcom.com,
Lori Hikichi <lori.hikichi@...adcom.com>,
alsa-devel@...a-project.org, linux-arm-kernel@...ts.infradead.org
Cc: kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ASoC: cygnus: remove redundant assignment to pointer
'res'
Looks good.
On 18-03-08 05:32 AM, Colin King wrote:
> From: Colin Ian King <colin.king@...onical.com>
>
> The pointer res is being initialized with a value that is never read
> and re-assigned immediately after, hence the initialization is redundant
> and can be removed.
>
> Cleans up clang warning:
> sound/soc/bcm/cygnus-ssp.c:1284:19: warning: Value stored to 'res'
> during its initialization is never read
>
> Signed-off-by: Colin Ian King <colin.king@...onical.com>
Acked-by: Scott Branden <scott.branden@...adcom.com>
> ---
> sound/soc/bcm/cygnus-ssp.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/sound/soc/bcm/cygnus-ssp.c b/sound/soc/bcm/cygnus-ssp.c
> index abafadc0b534..b733f1446353 100644
> --- a/sound/soc/bcm/cygnus-ssp.c
> +++ b/sound/soc/bcm/cygnus-ssp.c
> @@ -1281,7 +1281,7 @@ static int cygnus_ssp_probe(struct platform_device *pdev)
> {
> struct device *dev = &pdev->dev;
> struct device_node *child_node;
> - struct resource *res = pdev->resource;
> + struct resource *res;
> struct cygnus_audio *cygaud;
> int err = -EINVAL;
> int node_count;
Powered by blists - more mailing lists