summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorVarsha Rao <rvarsha016@gmail.com>2017-04-07 17:01:31 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-04-08 17:53:06 +0200
commit50a5e314792a4edbd64b1156ad4112480189a8dd (patch)
treea1e8af4c040b7fa0e98507ab23aa55488c1b2c04 /drivers
parent65ebd3dfe79553b294f893ad2b6f54f8b8680e44 (diff)
drivers: char: misc: Add space after ','.
Add space which is required after ',' to follow linux coding style. This patch fixes the checkpatch issue. Signed-off-by: Varsha Rao <rvarsha016@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/char/misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/misc.c b/drivers/char/misc.c
index ed8f79c630e7..3a19fa3269ff 100644
--- a/drivers/char/misc.c
+++ b/drivers/char/misc.c
@@ -150,7 +150,7 @@ static int misc_open(struct inode *inode, struct file *file)
err = 0;
replace_fops(file, new_fops);
if (file->f_op->open)
- err = file->f_op->open(inode,file);
+ err = file->f_op->open(inode, file);
fail:
mutex_unlock(&misc_mtx);
return err;
@@ -287,7 +287,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_printk;
misc_class->devnode = misc_devnode;
return 0;