From: Paolo Ciarrocchi <paolo.ciarrocchi@gmail.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: [PATCH 1/4] x86: coding style fixes in /arch/x86/pci/common.c
Date: Wed, 9 Jan 2008 00:30:42 +0100 [thread overview]
Message-ID: <20080109003042.7c38d706@paolo-desktop> (raw)
Fix some coding style issues.
Signed-off-by: Paolo Ciarrocchi <paolo.ciarrocchi@gmail.com>
---
arch/x86/pci/common.c | 12 +++++-------
1 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/arch/x86/pci/common.c b/arch/x86/pci/common.c
index 52deabc..7388b1a 100644
--- a/arch/x86/pci/common.c
+++ b/arch/x86/pci/common.c
@@ -67,7 +67,7 @@ static void __devinit pcibios_fixup_ghosts(struct pci_bus *b)
{
struct list_head *ln, *mn;
struct pci_dev *d, *e;
- int mirror = PCI_DEVFN(16,0);
+ int mirror = PCI_DEVFN(16, 0);
int seen_host_bridge = 0;
int i;
@@ -76,14 +76,14 @@ static void __devinit pcibios_fixup_ghosts(struct pci_bus *b)
d = pci_dev_b(ln);
if ((d->class >> 8) == PCI_CLASS_BRIDGE_HOST)
seen_host_bridge++;
- for (mn=ln->next; mn != &b->devices; mn=mn->next) {
+ for (mn = ln->next; mn != &b->devices; mn = mn->next) {
e = pci_dev_b(mn);
if (e->devfn != d->devfn + mirror ||
e->vendor != d->vendor ||
e->device != d->device ||
e->class != d->class)
continue;
- for(i=0; i<PCI_NUM_RESOURCES; i++)
+ for (i = 0; i < PCI_NUM_RESOURCES; i++)
if (e->resource[i].start != d->resource[i].start ||
e->resource[i].end != d->resource[i].end ||
e->resource[i].flags != d->resource[i].flags)
@@ -449,8 +449,7 @@ char * __devinit pcibios_setup(char *str)
else if (!strcmp(str, "conf1")) {
pci_probe = PCI_PROBE_CONF1 | PCI_NO_CHECKS;
return NULL;
- }
- else if (!strcmp(str, "conf2")) {
+ } else if (!strcmp(str, "conf2")) {
pci_probe = PCI_PROBE_CONF2 | PCI_NO_CHECKS;
return NULL;
}
@@ -464,8 +463,7 @@ char * __devinit pcibios_setup(char *str)
else if (!strcmp(str, "noacpi")) {
acpi_noirq_set();
return NULL;
- }
- else if (!strcmp(str, "noearly")) {
+ } else if (!strcmp(str, "noearly")) {
pci_probe |= PCI_PROBE_NOEARLY;
return NULL;
}
--
1.5.4.rc2.17.g257f
reply other threads:[~2008-01-08 23:30 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=20080109003042.7c38d706@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