]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
apparmor: remove useless static inline functions
authorGaosheng Cui <cuigaosheng1@huawei.com>
Mon, 26 Sep 2022 02:28:39 +0000 (10:28 +0800)
committerJohn Johansen <john.johansen@canonical.com>
Tue, 25 Oct 2022 05:35:11 +0000 (22:35 -0700)
commit2f7a29debae2efef94b981377fa3622986cd57f5
tree0de4ca6170bfd6ee0b2f880df7d6429ae3393bf9
parent53991aedcd34760be23f1b0ef312e39b6add84af
apparmor: remove useless static inline functions

Remove the following useless static inline functions:

1. label_is_visible() is a static function in
security/apparmor/label.c, and it's not used, aa_ns_visible()
can do the same things as it, so it's redundant.

2. is_deleted() is a static function in security/apparmor/file.c,
and it's not used since commit aebd873e8d3e ("apparmor: refactor
path name lookup and permission checks around labels"), so it's
redundant.

They are redundant, so remove them.

Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/file.c
security/apparmor/label.c