]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - security/integrity/ima/ima_fs.c
integrity: fix checkpatch errors
[karo-tx-linux.git] / security / integrity / ima / ima_fs.c
index 468a3ba3c539941b88cabe9ef7e73fe616be824d..da92fcc08d151645c8139ba724c9c15ccd029267 100644 (file)
@@ -133,14 +133,14 @@ static int ima_measurements_show(struct seq_file *m, void *v)
         * PCR used is always the same (config option) in
         * little-endian format
         */
-       ima_putc(m, &pcr, sizeof pcr);
+       ima_putc(m, &pcr, sizeof(pcr));
 
        /* 2nd: template digest */
        ima_putc(m, e->digest, TPM_DIGEST_SIZE);
 
        /* 3rd: template name size */
        namelen = strlen(e->template_desc->name);
-       ima_putc(m, &namelen, sizeof namelen);
+       ima_putc(m, &namelen, sizeof(namelen));
 
        /* 4th:  template name */
        ima_putc(m, e->template_desc->name, namelen);
@@ -292,7 +292,7 @@ static atomic_t policy_opencount = ATOMIC_INIT(1);
 /*
  * ima_open_policy: sequentialize access to the policy file
  */
-static int ima_open_policy(struct inode * inode, struct file * filp)
+static int ima_open_policy(struct inode *inode, struct file *filp)
 {
        /* No point in being allowed to open it if you aren't going to write */
        if (!(filp->f_flags & O_WRONLY))