diff options
author | Lee Duncan <lduncan@suse.com> | 2018-04-16 14:26:54 -0700 |
---|---|---|
committer | Lee Duncan <lduncan@suse.com> | 2018-04-16 14:26:54 -0700 |
commit | 737e3039960c0a0c02d42cf25710473b66949217 (patch) | |
tree | f0dd82a76b930026e52370e448ba4912e3506910 /libopeniscsiusr | |
parent | 0ee9bd622196b06bcf4cbd6f7c5eb61f9a007e7e (diff) | |
download | open-iscsi-737e3039960c0a0c02d42cf25710473b66949217.tar.gz |
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.
Diffstat (limited to 'libopeniscsiusr')
-rw-r--r-- | libopeniscsiusr/iface.c | 1 |
1 files changed, 0 insertions, 1 deletions
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; |