Skip to content

Commit

Permalink
char_dev.c: fix up some whitespace errors
Browse files Browse the repository at this point in the history
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: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
gregkh committed Dec 13, 2011
1 parent 5235492 commit 1ff9764
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fs/char_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,15 +272,15 @@ int __register_chrdev(unsigned int major, unsigned int baseminor,
cd = __register_chrdev_region(major, baseminor, count, name);
if (IS_ERR(cd))
return PTR_ERR(cd);

cdev = cdev_alloc();
if (!cdev)
goto out2;

cdev->owner = fops->owner;
cdev->ops = fops;
kobject_set_name(&cdev->kobj, "%s", name);

err = cdev_add(cdev, MKDEV(cd->major, baseminor), count);
if (err)
goto out;
Expand Down Expand Up @@ -405,7 +405,7 @@ static int chrdev_open(struct inode *inode, struct file *filp)
goto out_cdev_put;

if (filp->f_op->open) {
ret = filp->f_op->open(inode,filp);
ret = filp->f_op->open(inode, filp);
if (ret)
goto out_cdev_put;
}
Expand Down

0 comments on commit 1ff9764

Please sign in to comment.