]> git.baikalelectronics.ru Git - kernel.git/commit
selinux: remove redundant assignment to str
authorColin Ian King <colin.king@canonical.com>
Sat, 14 Oct 2017 12:46:55 +0000 (13:46 +0100)
committerPaul Moore <paul@paul-moore.com>
Mon, 16 Oct 2017 22:34:25 +0000 (18:34 -0400)
commitadd24372141855b057bf53982824c5fe50898957
tree71759987310723d0cbfd85a535d3c0a3a7e26ffd
parent4298555df5e5cb956549de5b01e4c77b1e4bc00a
selinux: remove redundant assignment to str

str is being assigned to an empty string but str is never being
read after that, so the assignment is redundant and can be removed.
Moving the declaration of str to a more localised block, cleans up
clang warning: "Value stored to 'str' is never read"

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/hooks.c