public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Eric Anschuetz <ericanschuetz@yahoo.com>
To: linux-kernel@vger.kernel.org
Subject: [PATCH 2/2] Staging: rar: fix various style issues in rar_driver.c
Date: Mon, 08 Mar 2010 15:04:50 -0500	[thread overview]
Message-ID: <1268078690.4345.2.camel@Acer-laptop> (raw)

>From 4d59ee6e30f056f262948dc35c8c1967c9d1b2a5 Mon Sep 17 00:00:00 2001
From: Eric Anschuetz <gh4ever@Acer-laptop.(none)>
Date: Sun, 7 Mar 2010 16:16:17 -0500
Subject: [PATCH 2/2] Staging: rar: fix various style issues in rar_driver.c
 This is a patch to the rar_driver.c file that fixes indentation and space warnings.
 Signed-off-by: Eric Anschuetz <ericanschuetz@yahoo.com>

---
 drivers/staging/rar/rar_driver.c |   26 ++++++++++++--------------
 1 files changed, 12 insertions(+), 14 deletions(-)

diff --git a/drivers/staging/rar/rar_driver.c b/drivers/staging/rar/rar_driver.c
index 640b06f..e1a7402 100644
--- a/drivers/staging/rar/rar_driver.c
+++ b/drivers/staging/rar/rar_driver.c
@@ -293,7 +293,7 @@ static int memrar_init_rar_params(struct pci_dev *pdev)
 			|| memrar_get_rar_addr(pdev,
 					(*i).high,
 					&(rar_addr[n].high)) != 0) {
-		       result = -1;
+			result = -1;
 		       break;
 	       }
 	}
@@ -302,18 +302,18 @@ static int memrar_init_rar_params(struct pci_dev *pdev)
 	/* pci_dev_put(pdev); */
 
 	if (result == 0) {
-	if (1) {
-	       size_t z;
-	       for (z = 0; z != MRST_NUM_RAR; ++z) {
-			printk(KERN_WARNING "rar - BRAR[%Zd] physical address low\n"
-			     "\tlow:  0x%08x\n"
-			     "\thigh: 0x%08x\n",
-			     z,
-			     rar_addr[z].low,
-			     rar_addr[z].high);
+		if (1) {
+			size_t z;
+			for (z = 0; z != MRST_NUM_RAR; ++z) {
+				printk(KERN_WARNING "rar - BRAR[%Zd] physical address low\n"
+					"\tlow:  0x%08x\n"
+					"\thigh: 0x%08x\n",
+					z,
+					rar_addr[z].low,
+					rar_addr[z].high);
+				}
 			}
-	       }
-	}
+		}
 
 	return result;
 }
@@ -410,8 +410,6 @@ int get_rar_address(int rar_index, struct RAR_address_struct *addresses)
 		return -ENODEV;
 		}
 }
-
-
 EXPORT_SYMBOL(get_rar_address);
 
 /* The lock_rar function is ued by other device drivers to lock an RAR.
-- 
1.6.3.3






             reply	other threads:[~2010-03-08 20:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-08 20:04 Eric Anschuetz [this message]
2010-04-08 20:06 ` [PATCH 2/2] Staging: rar: fix various style issues in rar_driver.c Greg KH

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=1268078690.4345.2.camel@Acer-laptop \
    --to=ericanschuetz@yahoo.com \
    --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