mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@suse.de>
To: linux-kernel@vger.kernel.org
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Subject: [PATCH 3/8] char_dev.c: fix up some whitespace errors
Date: Mon,  9 Jan 2012 11:25:00 -0800	[thread overview]
Message-ID: <1326137105-9960-3-git-send-email-gregkh@suse.de> (raw)
In-Reply-To: <1326137105-9960-1-git-send-email-gregkh@suse.de>

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>
---
 fs/char_dev.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/fs/char_dev.c b/fs/char_dev.c
index dca9e5e..3f152b9 100644
--- a/fs/char_dev.c
+++ b/fs/char_dev.c
@@ -272,7 +272,7 @@ 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;
@@ -280,7 +280,7 @@ int __register_chrdev(unsigned int major, unsigned int baseminor,
 	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;
@@ -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;
 	}
-- 
1.7.8


  parent reply	other threads:[~2012-01-09 19:25 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-09 19:07 [GIT PATCH] char and misc patches for 3.3 Greg KH
2012-01-09 19:24 ` [PATCH 1/8] misc: ad525x_dpot: Add support for SPI module device table matching Greg Kroah-Hartman
2012-01-09 19:24   ` [PATCH 2/8] s390: tape_class.h: remove kobj_map.h inclusion Greg Kroah-Hartman
2012-01-09 19:25   ` Greg Kroah-Hartman [this message]
2012-01-09 19:25   ` [PATCH 4/8] drivers:misc: ti-st: protect registrations Greg Kroah-Hartman
2012-01-09 19:25   ` [PATCH 5/8] drivers:misc: ti-st: flush UART upon fw failure Greg Kroah-Hartman
2012-01-09 19:25   ` [PATCH 6/8] drivers:misc: ti-st: DEBUG uart, baud rate mods Greg Kroah-Hartman
2012-01-09 19:25   ` [PATCH 7/8] BMP085: Remove redundant semi-colon from return statement Greg Kroah-Hartman
2012-01-09 19:25   ` [PATCH 8/8] isl29020: Remove a " Greg Kroah-Hartman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1326137105-9960-3-git-send-email-gregkh@suse.de \
    --to=gregkh@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome