vcsm: Fix spaces around operators.
authorDave Stevenson <dave.stevenson@raspberrypi.org>
Fri, 1 Sep 2017 16:24:48 +0000 (17:24 +0100)
committerRaspbian kernel package updater <root@raspbian.org>
Sat, 31 Mar 2018 14:55:24 +0000 (15:55 +0100)
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
drivers/char/broadcom/vc_sm/vmcs_sm.c

index ac49776a74b7b3aeebf8a35980d871708311690e..863675727bb7258ed4d13570f602c13b942da0d3 100644 (file)
@@ -2938,7 +2938,7 @@ static long vc_sm_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
                                ret = -EFAULT;
                                goto out;
                        }
-                       for (i=0; i<sizeof ioparam.s/sizeof *ioparam.s; i++) {
+                       for (i = 0; i < sizeof(ioparam.s) / sizeof(*ioparam.s); i++) {
                                switch (ioparam.s[i].cmd) {
                                default:
                                case 0:
@@ -2951,10 +2951,10 @@ static long vc_sm_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
                                            vmcs_sm_acquire_resource(file_data, ioparam.s[i].handle);
 
                                        if ((resource != NULL) && resource->res_cached) {
-                                               unsigned long base = ioparam.s[i].addr & ~(PAGE_SIZE-1);
-                                               unsigned long end = (ioparam.s[i].addr + ioparam.s[i].size + PAGE_SIZE-1) & ~(PAGE_SIZE-1);
+                                               unsigned long base = ioparam.s[i].addr & ~(PAGE_SIZE - 1);
+                                               unsigned long end = (ioparam.s[i].addr + ioparam.s[i].size + PAGE_SIZE - 1) & ~(PAGE_SIZE - 1);
 
-                                               resource->res_stats[ioparam.s[i].cmd == 1 ? INVALID:FLUSH]++;
+                                               resource->res_stats[ioparam.s[i].cmd == 1 ? INVALID : FLUSH]++;
 
                                                /* L1/L2 cache flush */
                                                down_read(&current->mm->mmap_sem);
@@ -3001,7 +3001,7 @@ static long vc_sm_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
                                        goto out;
                                }
 
-                               for (i=0; i<ioparam.op_count; i++) {
+                               for (i = 0; i < ioparam.op_count; i++) {
                                        struct vmcs_sm_ioctl_clean_invalid_block *op = block + i;
 
                                        for (j = 0; j < op->block_count; ++j) {