Commit 65d96351 authored by Ethan Edwards's avatar Ethan Edwards Committed by Paul Moore
Browse files

selinux: fixed a checkpatch warning with the sizeof macro



`sizeof buf` changed to `sizeof(buf)`

Signed-off-by: default avatarEthan Edwards <ethancarteredwards@gmail.com>
[PM: rewrote the subject line]
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent 7383c0f9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;