diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2011-01-30 22:53:42 -0600 |
---|---|---|
committer | Mike Christie <michaelc@cs.wisc.edu> | 2011-01-31 21:52:19 -0600 |
commit | 508c5df5ef6433049e2162188a7f3831953a6df0 (patch) | |
tree | 6ae0837dd897ce2d1a3e511e5dc3f4ac9785c0cc /usr/idbm.c | |
parent | a1d833f3e1b851282004482d5f0c4dcc1d41dbdb (diff) | |
download | open-iscsi-508c5df5ef6433049e2162188a7f3831953a6df0.tar.gz |
iscsi tools: convert discovery code to iscsi error codes
This just converts the iscsi discovery code
to the iscsi_err.h error codes.
Diffstat (limited to 'usr/idbm.c')
-rw-r--r-- | usr/idbm.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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); |