From 737e3039960c0a0c02d42cf25710473b66949217 Mon Sep 17 00:00:00 2001 From: Lee Duncan Date: Mon, 16 Apr 2018 14:26:54 -0700 Subject: Allow a host_id value of zero. In libopeniscsiusr, when getting iface from sysfs, allow a host_id of zero, since the host_id starts at zero. The fact that it is a uint32_t is enough of a limitation. --- libopeniscsiusr/iface.c | 1 - 1 file changed, 1 deletion(-) (limited to 'libopeniscsiusr') diff --git a/libopeniscsiusr/iface.c b/libopeniscsiusr/iface.c index 3233bb5..0bf3ee2 100644 --- a/libopeniscsiusr/iface.c +++ b/libopeniscsiusr/iface.c @@ -111,7 +111,6 @@ int _iscsi_iface_get_from_sysfs(struct iscsi_context *ctx, uint32_t host_id, bool matched = false; assert(ctx != NULL); - assert(host_id != 0); assert(iface != NULL); *iface = NULL; -- cgit v1.2.1