selinux: fixed a checkpatch warning with the sizeof macro
authorEthan Edwards <ethancarteredwards@gmail.com>
Wed, 24 Jun 2020 16:12:58 +0000 (12:12 -0400)
committerPaul Moore <paul@paul-moore.com>
Mon, 29 Jun 2020 23:26:17 +0000 (19:26 -0400)
`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>
security/selinux/ss/conditional.c

index da94a1b4bfda07dccee4dfeaf04b86c3440f82ce..25850c9ea6fae174a043ae5421407332ed6f403b 100644 (file)
@@ -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;