]> 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)
commita88fdda4b48f162e6ca746656602c61b412df78a
treea4ab702c757683cf1107e3595de903180af88b22
parenta574a000bd2ccfe8b198859ace30403661eeef93
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