Skip to content

Commit 8de4a7d

Browse files
GONG, Ruiqijrjohansen
authored andcommitted
apparmor: remove unused macro
SOCK_ctx() doesn't seem to be used anywhere in the code, so remove it. Signed-off-by: GONG, Ruiqi <gongruiqi@huaweicloud.com> Signed-off-by: John Johansen <john.johansen@canonical.com>
1 parent 0897fcb commit 8de4a7d

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

  • security/apparmor/include

security/apparmor/include/net.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ struct aa_sk_ctx {
5252
};
5353

5454
#define SK_CTX(X) ((X)->sk_security)
55-
#define SOCK_ctx(X) SOCK_INODE(X)->i_security
5655
#define DEFINE_AUDIT_NET(NAME, OP, SK, F, T, P) \
5756
struct lsm_network_audit NAME ## _net = { .sk = (SK), \
5857
.family = (F)}; \

0 commit comments

Comments
 (0)