Blame 0021-iscsiadm-Check-for-mode-is-not-required-when-creatin.patch

c2d5d2
From 71f0db9ccb46be357c9b6505d35340150795996c Mon Sep 17 00:00:00 2001
c2d5d2
From: Adheer Chandravanshi <adheer.chandravanshi@qlogic.com>
c2d5d2
Date: Thu, 9 May 2013 13:57:49 +0530
c2d5d2
Subject: iscsiadm: Check for mode is not required when creating params list
c2d5d2
c2d5d2
There is no need to explicitly check for mode while creating the params
c2d5d2
list of name/value pairs.
c2d5d2
c2d5d2
Reported-by: Leeman Duncan <leeman.duncan@gmail.com>
c2d5d2
Signed-off-by: Adheer Chandravanshi <adheer.chandravanshi@qlogic.com>
c2d5d2
---
c2d5d2
 usr/iscsiadm.c | 4 +---
c2d5d2
 1 file changed, 1 insertion(+), 3 deletions(-)
c2d5d2
c2d5d2
diff --git a/usr/iscsiadm.c b/usr/iscsiadm.c
c2d5d2
index efe6383..84d5a27 100644
c2d5d2
--- a/usr/iscsiadm.c
c2d5d2
+++ b/usr/iscsiadm.c
c2d5d2
@@ -2962,9 +2962,7 @@ main(int argc, char **argv)
c2d5d2
 			usage(0);
c2d5d2
 		}
c2d5d2
 
c2d5d2
-		if ((mode == MODE_IFACE ||
c2d5d2
-		     (mode == MODE_HOST && sub_mode == MODE_FLASHNODE)) &&
c2d5d2
-		    name && value) {
c2d5d2
+		if (name && value) {
c2d5d2
 			param = idbm_alloc_user_param(name, value);
c2d5d2
 			if (!param) {
c2d5d2
 				log_error("Cannot allocate memory for params.");
c2d5d2
-- 
c2d5d2
1.8.1.4
c2d5d2