All of lore.kernel.org
 help / color / mirror / Atom feed
From: aybuke ozdemir <aybuke.147@gmail.com>
To: outreachy-kernel@googlegroups.com
Cc: aybuke ozdemir <aybuke.147@gmail.com>
Subject: [PATCH v2 2/2] Staging: i2o: Corrected code indentation
Date: Thu, 26 Feb 2015 01:12:19 +0200	[thread overview]
Message-ID: <1424905939-11537-2-git-send-email-aybuke.147@gmail.com> (raw)
In-Reply-To: <1424905939-11537-1-git-send-email-aybuke.147@gmail.com>

WARNING: suspect code indent for conditional statements(8,12)
spaces are converting to tabs suspect code indent is deleted.
That was found by running checkpatch.pl

Signed-off-by: aybuke ozdemir <aybuke.147@gmail.com>
---
 drivers/staging/i2o/device.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/drivers/staging/i2o/device.c b/drivers/staging/i2o/device.c
index e47496c..cd6da9c 100644
--- a/drivers/staging/i2o/device.c
+++ b/drivers/staging/i2o/device.c
@@ -260,10 +260,10 @@ static int i2o_device_add(struct i2o_controller *c, i2o_lct_entry *entry)
 
 	/* create user entries referring to this device */
 	list_for_each_entry(tmp, &c->devices, list)
-	    if ((tmp->lct_data.user_tid == i2o_dev->lct_data.tid)
-		&& (tmp != i2o_dev)) {
-		rc = sysfs_create_link(&tmp->device.kobj,
-				       &i2o_dev->device.kobj, "user");
+		if ((tmp->lct_data.user_tid == i2o_dev->lct_data.tid)
+						&& (tmp != i2o_dev)) {
+			rc = sysfs_create_link(&tmp->device.kobj,
+						&i2o_dev->device.kobj, "user");
 		if (rc)
 			goto rmlink1;
 	}
@@ -279,10 +279,10 @@ static int i2o_device_add(struct i2o_controller *c, i2o_lct_entry *entry)
 
 	/* create parent entries referring to this device */
 	list_for_each_entry(tmp, &c->devices, list)
-	    if ((tmp->lct_data.parent_tid == i2o_dev->lct_data.tid)
-		&& (tmp != i2o_dev)) {
-		rc = sysfs_create_link(&tmp->device.kobj,
-				       &i2o_dev->device.kobj, "parent");
+		if ((tmp->lct_data.parent_tid == i2o_dev->lct_data.tid)
+						&& (tmp != i2o_dev)) {
+			rc = sysfs_create_link(&tmp->device.kobj,
+						&i2o_dev->device.kobj, "parent");
 		if (rc)
 			goto rmlink2;
 	}
-- 
1.9.1



  reply	other threads:[~2015-02-25 23:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-25 23:12 [PATCH v2 1/2] Staging: i2o: Remove unnecessary 'out of memory' message aybuke ozdemir
2015-02-25 23:12 ` aybuke ozdemir [this message]
2015-02-26 18:38   ` [Outreachy kernel] [PATCH v2 2/2] Staging: i2o: Corrected code indentation 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=1424905939-11537-2-git-send-email-aybuke.147@gmail.com \
    --to=aybuke.147@gmail.com \
    --cc=outreachy-kernel@googlegroups.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.