]> git.baikalelectronics.ru Git - kernel.git/commit
smack: Remove redundant assignments
authorMichal Orzel <michalorzel.eng@gmail.com>
Thu, 31 Mar 2022 17:33:58 +0000 (19:33 +0200)
committerCasey Schaufler <casey@schaufler-ca.com>
Mon, 23 May 2022 18:12:08 +0000 (11:12 -0700)
commit0e5a93d34c3250884f30efb9c4965f1c24ef18e6
treea4ab702c757683cf1107e3595de903180af88b22
parent9a11b386be37d7bf0bb51fc72008257a1c48d4a9
smack: 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]

Signed-off-by: Michal Orzel <michalorzel.eng@gmail.com>
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
security/smack/smackfs.c