selinux: Return an error code only as a constant in sidtab_insert()
authorMarkus Elfring <elfring@users.sourceforge.net>
Tue, 4 Apr 2017 09:33:53 +0000 (11:33 +0200)
committerPaul Moore <paul@paul-moore.com>
Tue, 23 May 2017 14:23:17 +0000 (10:23 -0400)
commit46be14d2b6fbc20c9e7008ec8c28b40609ef6f22
tree352a3b73065c2e39802068d2b38f3a6d25177533
parent62934ffb9e5f9a904c83f571590631b766d68d12
selinux: Return an error code only as a constant in sidtab_insert()

* Return an error code without storing it in an intermediate variable.

* Delete the local variable "rc" and the jump label "out" which became
  unnecessary with this refactoring.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/ss/sidtab.c