ipc/sem: remove redundant assignments
authorMichal Orzel <michalorzel.eng@gmail.com>
Tue, 10 May 2022 01:29:20 +0000 (18:29 -0700)
committerakpm <akpm@linux-foundation.org>
Tue, 10 May 2022 01:29:20 +0000 (18:29 -0700)
commit0e900029655327bb5326ced02eff97667a079039
treec859913d8d2bce354b1f22d0f1ceef3c7d444722
parent800c24dc34b93d2014f3952683f8d5e9309e1b73
ipc/sem: remove redundant assignments

Get rid of redundant assignments which end up in values not being
read either because they are overwritten or the function ends.

Reported by clang-tidy [deadcode.DeadStores]

Link: https://lkml.kernel.org/r/20220409101933.207157-1-michalorzel.eng@gmail.com
Signed-off-by: Michal Orzel <michalorzel.eng@gmail.com>
Reviewed-by: Tom Rix <trix@redhat.com>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Cc: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
ipc/sem.c