Skip to content

Commit

Permalink
selinux: fixed a checkpatch warning with the sizeof macro
Browse files Browse the repository at this point in the history
`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>
  • Loading branch information
Ethan Edwards authored and Paul Moore committed Jun 29, 2020
1 parent 7383c0f commit 65d9635
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions security/selinux/ss/conditional.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 65d9635

Please sign in to comment.