]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9db3d8690bbfd30932efba9c5237b559bce3cf05
treec859913d8d2bce354b1f22d0f1ceef3c7d444722
parenta7a43d4fed1601d45662e563514a028273be83e9
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