Skip to content

Commit 65d9635

Browse files
ethancedwards8pcmoore
authored andcommitted
selinux: fixed a checkpatch warning with the sizeof macro
`sizeof buf` changed to `sizeof(buf)` Signed-off-by: Ethan Edwards <[email protected]> [PM: rewrote the subject line] Signed-off-by: Paul Moore <[email protected]>
1 parent 7383c0f commit 65d9635

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

security/selinux/ss/conditional.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ int cond_read_bool(struct policydb *p, struct hashtab *h, void *fp)
212212
if (!booldatum)
213213
return -ENOMEM;
214214

215-
rc = next_entry(buf, fp, sizeof buf);
215+
rc = next_entry(buf, fp, sizeof(buf));
216216
if (rc)
217217
goto err;
218218

@@ -421,7 +421,7 @@ int cond_read_list(struct policydb *p, void *fp)
421421
u32 i, len;
422422
int rc;
423423

424-
rc = next_entry(buf, fp, sizeof buf);
424+
rc = next_entry(buf, fp, sizeof(buf));
425425
if (rc)
426426
return rc;
427427

0 commit comments

Comments
 (0)