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>
This commit is contained in:
Ethan Edwards 2020-06-24 12:12:58 -04:00 committed by Paul Moore
parent 7383c0f94d
commit 65d96351b1

View File

@ -212,7 +212,7 @@ int cond_read_bool(struct policydb *p, struct hashtab *h, void *fp)
if (!booldatum) if (!booldatum)
return -ENOMEM; return -ENOMEM;
rc = next_entry(buf, fp, sizeof buf); rc = next_entry(buf, fp, sizeof(buf));
if (rc) if (rc)
goto err; goto err;
@ -421,7 +421,7 @@ int cond_read_list(struct policydb *p, void *fp)
u32 i, len; u32 i, len;
int rc; int rc;
rc = next_entry(buf, fp, sizeof buf); rc = next_entry(buf, fp, sizeof(buf));
if (rc) if (rc)
return rc; return rc;