Skip to contentSkip to conversation

char: misc: fix coding style issues

PATCH New Rahul Bedarkar 1 participant 1 message Oct 11, 2014 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 char: misc: fix coding style issues

This patch fixes checkpatch.pl error
ERROR: space required after that ',' (ctx:VxV)

---
 drivers/char/misc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/char/misc.c +2 -2
index a6b96b1..47c9b04 100644
@@ -144,7 +144,7 @@ static int misc_open(struct inode *inode, struct file *file)
 	replace_fops(file, new_fops);
 	if (file->f_op->open) {
 		file->private_data = c;
-		err = file->f_op->open(inode,file);
+		err = file->f_op->open(inode, file);
 	}
 fail:
 	mutex_unlock(&misc_mtx);
@@ -279,7 +279,7 @@ static int __init misc_init(void)
 		goto fail_remove;
 
 	err = -EIO;
-	if (register_chrdev(MISC_MAJOR,"misc",&misc_fops))
+	if (register_chrdev(MISC_MAJOR, "misc", &misc_fops))
 		goto fail_pr_err;
 	misc_class->devnode = misc_devnode;
 	return 0;
Signature · 1 line
1.8.3.2