forked from luck/tmp_suning_uos_patched
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:
parent
7383c0f94d
commit
65d96351b1
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user