From 508c5df5ef6433049e2162188a7f3831953a6df0 Mon Sep 17 00:00:00 2001 From: Mike Christie Date: Sun, 30 Jan 2011 22:53:42 -0600 Subject: iscsi tools: convert discovery code to iscsi error codes This just converts the iscsi discovery code to the iscsi_err.h error codes. --- usr/idbm.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'usr/idbm.c') diff --git a/usr/idbm.c b/usr/idbm.c index 331d684..a73b410 100644 --- a/usr/idbm.c +++ b/usr/idbm.c @@ -1860,10 +1860,12 @@ static int idbm_bind_iface_to_nodes(idbm_disc_nodes_fn *disc_node_fn, { struct node_rec *rec, *tmp; struct list_head new_recs; + int rc; INIT_LIST_HEAD(&new_recs); - if (disc_node_fn(data, iface, &new_recs)) - return ISCSI_ERR; + rc = disc_node_fn(data, iface, &new_recs); + if (rc) + return rc; list_for_each_entry_safe(rec, tmp, &new_recs, list) { list_del_init(&rec->list); -- cgit v1.2.1