Commit 1ff97647 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

char_dev.c: fix up some whitespace errors

Remove some minor whitespace errors (2 trailing spaces, and one space
needed for a comma) to make the file checkpatch.pl clean with the
exception of the exports, which is fine for now.
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 52354925
...@@ -272,7 +272,7 @@ int __register_chrdev(unsigned int major, unsigned int baseminor, ...@@ -272,7 +272,7 @@ int __register_chrdev(unsigned int major, unsigned int baseminor,
cd = __register_chrdev_region(major, baseminor, count, name); cd = __register_chrdev_region(major, baseminor, count, name);
if (IS_ERR(cd)) if (IS_ERR(cd))
return PTR_ERR(cd); return PTR_ERR(cd);
cdev = cdev_alloc(); cdev = cdev_alloc();
if (!cdev) if (!cdev)
goto out2; goto out2;
...@@ -280,7 +280,7 @@ int __register_chrdev(unsigned int major, unsigned int baseminor, ...@@ -280,7 +280,7 @@ int __register_chrdev(unsigned int major, unsigned int baseminor,
cdev->owner = fops->owner; cdev->owner = fops->owner;
cdev->ops = fops; cdev->ops = fops;
kobject_set_name(&cdev->kobj, "%s", name); kobject_set_name(&cdev->kobj, "%s", name);
err = cdev_add(cdev, MKDEV(cd->major, baseminor), count); err = cdev_add(cdev, MKDEV(cd->major, baseminor), count);
if (err) if (err)
goto out; goto out;
...@@ -405,7 +405,7 @@ static int chrdev_open(struct inode *inode, struct file *filp) ...@@ -405,7 +405,7 @@ static int chrdev_open(struct inode *inode, struct file *filp)
goto out_cdev_put; goto out_cdev_put;
if (filp->f_op->open) { if (filp->f_op->open) {
ret = filp->f_op->open(inode,filp); ret = filp->f_op->open(inode, filp);
if (ret) if (ret)
goto out_cdev_put; goto out_cdev_put;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment