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)
commit84117994bc103617787147b8538a5c021b2ca79f
treeeab8d35071747a94404317fab06b7761fc9b6435
parent68ff8540cc9e4ab557065b3f635c1ff4c96e1f1c
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