]> git.baikalelectronics.ru Git - kernel.git/commit
security/apparmor: remove redundant ret variable
authorMinghao Chi <chi.minghao@zte.com.cn>
Wed, 12 Jan 2022 08:03:56 +0000 (08:03 +0000)
committerJohn Johansen <john.johansen@canonical.com>
Sat, 9 Jul 2022 22:13:59 +0000 (15:13 -0700)
commit2640647049316b51e3e855e4a462e21c5f2e3d57
treeeab8d35071747a94404317fab06b7761fc9b6435
parent8f3d415b658022d6f54a0dc8a4340f07f2db608d
security/apparmor: remove redundant ret variable

Return value from nf_register_net_hooks() directly instead
of taking this in another redundant variable.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
Signed-off-by: CGEL ZTE <cgel.zte@gmail.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/lsm.c