apparmor: make aa_set_current_onexec return void

Change the return type to void since it always return 0, and no need
to do the checking in aa_set_current_onexec.

Signed-off-by: Quanfa Fu <quanfafu@gmail.com>
Reviewed-by: "Tyler Hicks (Microsoft)" <code@tyhicks.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
Quanfa Fu 2023-01-15 00:49:52 +08:00 • committed by John Johansen
commit 0897fcb1c1
3 changed files with 3 additions and 6 deletions