[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20180129.143942.1100860144218349617.davem@davemloft.net>
Date: Mon, 29 Jan 2018 14:39:42 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: colin.king@...onical.com
Cc: linux-ide@...r.kernel.org, kernel-janitors@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ide: remove duplicated assignment to 'cursg'
From: Colin King <colin.king@...onical.com>
Date: Tue, 16 Jan 2018 17:54:22 +0000
> From: Colin Ian King <colin.king@...onical.com>
>
> Pointer cursg is initialized to cmd->cursg and again re-assigned the
> same value a few lines later, hence the second assignment is redundant
> and can be removed.
>
> Cleans up clang warning:
> drivers/ide/ide-taskfile.c:229:22: warning: Value stored to 'cursg'
> during its initialization is never read
>
> Signed-off-by: Colin Ian King <colin.king@...onical.com>
Patch applied, thanks Colin.
Powered by blists - more mailing lists