relay: remove redundant assignment to pointer buf
authorColin Ian King <colin.i.king@gmail.com>
Fri, 13 May 2022 03:38:37 +0000 (20:38 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 13 May 2022 03:38:37 +0000 (20:38 -0700)
commit47b7eae62aa7dc69f0e6d12493e5468ba57bf074
tree08fbe7fed30a758bde91f79bf5d0862d1085436b
parenta3b774342fa752a5290c0de36375289dfcf4a260
relay: remove redundant assignment to pointer buf

Pointer buf is being assigned a value that is not being read, buf is being
re-assigned in the next starement.  The assignment is redundant and can be
removed.

Cleans up clang scan build warning:
kernel/relay.c:443:8: warning: Although the value stored to 'buf' is
used in the enclosing expression, the value is never actually read
from 'buf' [deadcode.DeadStores]

Link: https://lkml.kernel.org/r/20220508212152.58753-1-colin.i.king@gmail.com
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/relay.c