summaryrefslogtreecommitdiff
path: root/usr/idbm.c
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2011-01-30 22:53:42 -0600
committerMike Christie <michaelc@cs.wisc.edu>2011-01-31 21:52:19 -0600
commit508c5df5ef6433049e2162188a7f3831953a6df0 (patch)
tree6ae0837dd897ce2d1a3e511e5dc3f4ac9785c0cc /usr/idbm.c
parenta1d833f3e1b851282004482d5f0c4dcc1d41dbdb (diff)
downloadopen-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.c6
1 files changed, 4 insertions, 2 deletions
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);