diff options
author | Ethan Edwards <ethancarteredwards@gmail.com> | 2020-06-24 19:12:58 +0300 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2020-06-30 02:26:17 +0300 |
commit | 65d96351b135c2a694814520a6031f3721020ba9 (patch) | |
tree | 6feb36f70fbe2ebf4bde236ccc7956c4ca661c0d /security | |
parent | 7383c0f94d3c902d5dd68792331e9a1d4a5ad6cb (diff) | |
download | linux-65d96351b135c2a694814520a6031f3721020ba9.tar.xz |
selinux: fixed a checkpatch warning with the sizeof macro
`sizeof buf` changed to `sizeof(buf)`
Signed-off-by: Ethan Edwards <ethancarteredwards@gmail.com>
[PM: rewrote the subject line]
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security')
-rw-r--r-- | security/selinux/ss/conditional.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/selinux/ss/conditional.c b/security/selinux/ss/conditional.c index da94a1b4bfda..25850c9ea6fa 100644 --- a/security/selinux/ss/conditional.c +++ b/security/selinux/ss/conditional.c @@ -212,7 +212,7 @@ int cond_read_bool(struct policydb *p, struct hashtab *h, void *fp) if (!booldatum) return -ENOMEM; - rc = next_entry(buf, fp, sizeof buf); + rc = next_entry(buf, fp, sizeof(buf)); if (rc) goto err; @@ -421,7 +421,7 @@ int cond_read_list(struct policydb *p, void *fp) u32 i, len; int rc; - rc = next_entry(buf, fp, sizeof buf); + rc = next_entry(buf, fp, sizeof(buf)); if (rc) return rc; |