The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Paolo Ciarrocchi <paolo.ciarrocchi@gmail.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: [PATCH 3/4] x86: coding style fixes in arch/x86/pci/direct.c
Date: Wed, 9 Jan 2008 00:31:00 +0100	[thread overview]
Message-ID: <20080109003100.6d7d6297@paolo-desktop> (raw)

Simple coding style fixes.
File is now "error" free according to checkpatch.pl


Signed-off-by: Paolo Ciarrocchi <paolo.ciarrocchi@gmail.com>
---
 arch/x86/pci/direct.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/arch/x86/pci/direct.c b/arch/x86/pci/direct.c
index 431c9a5..4eefa5c 100644
--- a/arch/x86/pci/direct.c
+++ b/arch/x86/pci/direct.c
@@ -50,7 +50,7 @@ int pci_conf1_write(unsigned int seg, unsigned int bus,
 {
 	unsigned long flags;
 
-	if ((bus > 255) || (devfn > 255) || (reg > 255)) 
+	if ((bus > 255) || (devfn > 255) || (reg > 255))
 		return -EINVAL;
 
 	spin_lock_irqsave(&pci_config_lock, flags);
@@ -102,7 +102,7 @@ static int pci_conf2_read(unsigned int seg, unsigned int bus,
 	dev = PCI_SLOT(devfn);
 	fn = PCI_FUNC(devfn);
 
-	if (dev & 0x10) 
+	if (dev & 0x10)
 		return PCIBIOS_DEVICE_NOT_FOUND;
 
 	spin_lock_irqsave(&pci_config_lock, flags);
@@ -135,13 +135,13 @@ static int pci_conf2_write(unsigned int seg, unsigned int bus,
 	unsigned long flags;
 	int dev, fn;
 
-	if ((bus > 255) || (devfn > 255) || (reg > 255)) 
+	if ((bus > 255) || (devfn > 255) || (reg > 255))
 		return -EINVAL;
 
 	dev = PCI_SLOT(devfn);
 	fn = PCI_FUNC(devfn);
 
-	if (dev & 0x10) 
+	if (dev & 0x10)
 		return PCIBIOS_DEVICE_NOT_FOUND;
 
 	spin_lock_irqsave(&pci_config_lock, flags);
@@ -161,7 +161,7 @@ static int pci_conf2_write(unsigned int seg, unsigned int bus,
 		break;
 	}
 
-	outb(0, 0xCF8);    
+	outb(0, 0xCF8);
 
 	spin_unlock_irqrestore(&pci_config_lock, flags);
 
-- 
1.5.4.rc2.17.g257f


                 reply	other threads:[~2008-01-08 23:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20080109003100.6d7d6297@paolo-desktop \
    --to=paolo.ciarrocchi@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    /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