summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorEthan Edwards <ethancarteredwards@gmail.com>2020-06-24 12:12:58 -0400
committerPaul Moore <paul@paul-moore.com>2020-06-29 19:26:17 -0400
commit65d96351b135c2a694814520a6031f3721020ba9 (patch)
tree6feb36f70fbe2ebf4bde236ccc7956c4ca661c0d /security
parent7383c0f94d3c902d5dd68792331e9a1d4a5ad6cb (diff)
downloadlwn-65d96351b135c2a694814520a6031f3721020ba9.tar.gz
lwn-65d96351b135c2a694814520a6031f3721020ba9.zip
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.c4
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;