[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20220120085132.27w7lwam3tq6yyby@wittgenstein>
Date: Thu, 20 Jan 2022 09:51:32 +0100
From: Christian Brauner <brauner@...nel.org>
To: Colin Ian King <colin.i.king@...il.com>
Cc: Alexander Viro <viro@...iv.linux.org.uk>,
linux-fsdevel@...r.kernel.org, kernel-janitors@...r.kernel.org,
linux-kernel@...r.kernel.org, llvm@...ts.linux.dev
Subject: Re: [PATCH] pipe: remove redundant assignment to pointer buf
On Wed, Jan 19, 2022 at 10:56:33PM +0000, Colin Ian King wrote:
> The pointer buf is being assigned a value that is never read, it is
> being re-assigned later on closer to where is it required to be set.
> The assignment is redundant and can be removed. Cleans up clang
> scan build warning:
>
> fs/pipe.c:490:24: warning: Value stored to 'buf' during its
> initialization is never read [deadcode.DeadStores]
>
> Signed-off-by: Colin Ian King <colin.i.king@...il.com>
> ---
Acked-by: Christian Brauner <brauner@...nel.org>
Powered by blists - more mailing lists