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

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