[Pkg-iscsi-maintainers] [SCM] Debian Open-iSCSI Packaging branch, upstream-mnc, updated. 2.0-872-193-gde2c0e7

Mike Christie michaelc at cs.wisc.edu
Sat Apr 7 15:44:21 UTC 2012


The following commit has been merged in the upstream-mnc branch:
commit b082070000d0c02c5c59dca69d1e4e907546616c
Author: Mike Christie <michaelc at cs.wisc.edu>
Date:   Thu Apr 5 15:53:28 2012 -0500

    iscsi tools: remove useless NULL iface check
    
    The iface in iscsi_alloc_session is always non-null, so remove
    check.

diff --git a/usr/discovery.c b/usr/discovery.c
index 1f39002..afce6c0 100644
--- a/usr/discovery.c
+++ b/usr/discovery.c
@@ -844,7 +844,7 @@ iscsi_alloc_session(struct iscsi_sendtargets_config *config,
 	session->isid[4] = 0;
 	session->isid[5] = 0;
 
-	if (iface && strlen(iface->iname)) {
+	if (strlen(iface->iname)) {
 		strcpy(initiator_name, iface->iname);
 		/* MNC TODO add iface alias */
 	} else {

-- 
Debian Open-iSCSI Packaging



More information about the Pkg-iscsi-maintainers mailing list