Re: [PATCH] pipe: remove redundant assignment to pointer buf

From: Christian Brauner
Date: Thu Jan 20 2022 - 03:51:41 EST


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@xxxxxxxxx>
> ---

Acked-by: Christian Brauner <brauner@xxxxxxxxxx>