diff mbox series

[-next] apparmor: Remove unused inline function label_is_visible()

Message ID 20210914095313.11496-1-yuehaibing@huawei.com (mailing list archive)
State New, archived
Headers show
Series [-next] apparmor: Remove unused inline function label_is_visible() | expand

Commit Message

Yue Haibing Sept. 14, 2021, 9:53 a.m. UTC
There is no caller in tree, so can remove it.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 security/apparmor/label.c | 6 ------
 1 file changed, 6 deletions(-)
diff mbox series

Patch

diff --git a/security/apparmor/label.c b/security/apparmor/label.c
index 6222fdfebe4e..a86ac938ca88 100644
--- a/security/apparmor/label.c
+++ b/security/apparmor/label.c
@@ -1255,12 +1255,6 @@  struct aa_label *aa_label_merge(struct aa_label *a, struct aa_label *b,
 	return label;
 }
 
-static inline bool label_is_visible(struct aa_profile *profile,
-				    struct aa_label *label)
-{
-	return aa_ns_visible(profile->ns, labels_ns(label), true);
-}
-
 /* match a profile and its associated ns component if needed
  * Assumes visibility test has already been done.
  * If a subns profile is not to be matched should be prescreened with