]> git.baikalelectronics.ru Git - kernel.git/commit
selinux: remove useless assignments
authorOndrej Mosnacek <omosnace@redhat.com>
Mon, 25 Mar 2019 08:11:15 +0000 (09:11 +0100)
committerPaul Moore <paul@paul-moore.com>
Mon, 25 Mar 2019 14:25:06 +0000 (10:25 -0400)
commit682f2c2b7cab9744c6f50568278bfcbec959d04e
tree128cf5a7abfcc3f1756159be339abb81b72d550d
parentf3a054ef6bdc375c2feba42e44ce17d3095a1f66
selinux: remove useless assignments

The code incorrectly assigned directly to the variables instead of the
values they point to. Since the values are already set to NULL/0 at the
beginning of the function, we can simply remove these useless
assignments.

Reported-by: Hariprasad Kelam <hariprasad.kelam@gmail.com>
Fixes: 59d18ce13c70 ("selinux: log invalid contexts in AVCs")
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
[PM: removed a bad comment that was causing compiler warnings]
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/ss/services.c