Skip to content

Commit 1ff9764

Browse files
committed
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: Greg Kroah-Hartman <gregkh@suse.de>
1 parent 5235492 commit 1ff9764

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎fs/char_dev.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,15 +272,15 @@ int __register_chrdev(unsigned int major, unsigned int baseminor,
272272
cd = __register_chrdev_region(major, baseminor, count, name);
273273
if (IS_ERR(cd))
274274
return PTR_ERR(cd);
275-
275+
276276
cdev = cdev_alloc();
277277
if (!cdev)
278278
goto out2;
279279

280280
cdev->owner = fops->owner;
281281
cdev->ops = fops;
282282
kobject_set_name(&cdev->kobj, "%s", name);
283-
283+
284284
err = cdev_add(cdev, MKDEV(cd->major, baseminor), count);
285285
if (err)
286286
goto out;
@@ -405,7 +405,7 @@ static int chrdev_open(struct inode *inode, struct file *filp)
405405
goto out_cdev_put;
406406

407407
if (filp->f_op->open) {
408-
ret = filp->f_op->open(inode,filp);
408+
ret = filp->f_op->open(inode, filp);
409409
if (ret)
410410
goto out_cdev_put;
411411
}

0 commit comments

Comments
 (0)