[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CACRpkdboW19udLX3++e0OCw=tfTKEuasb8Jv3a4AZueJxjhUhg@mail.gmail.com>
Date: Wed, 17 Jan 2018 00:19:31 +0100
From: Linus Walleij <linus.walleij@...aro.org>
To: Colin King <colin.king@...onical.com>
Cc: linux-gpio@...r.kernel.org, kernel-janitors@...r.kernel.org,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH][next] gpiolib: remove redundant initialization of pointer desc
On Tue, Jan 16, 2018 at 12:56 PM, Colin King <colin.king@...onical.com> wrote:
> From: Colin Ian King <colin.king@...onical.com>
>
> The initialized value stored in pointer desc is never read as it
> is updated in the first executable statement in the function.
> This is therefore redundant and can be removed.
>
> Cleans up clang warning:
> drivers/gpio/gpiolib.c:3710:20: warning: Value stored to 'desc'
> during its initialization is never read
>
> Signed-off-by: Colin Ian King <colin.king@...onical.com>
Patch applied.
Yours,
Linus Walleij
Powered by blists - more mailing lists