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>
Wed, 26 Jan 2022 09:33:06 +0000 (01:33 -0800)
commita5a122fe88a5cd1f07866fd4615f1c5c8aa4981e
treeb5d87a34b1353f8701c223fd1e93bfd6159f3a31
parent70cb9f8d1242cd72a7f237da0a7f1523d3424cde
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