Commit 31b36ec6 authored by James Simmons's avatar James Simmons Committed by Greg Kroah-Hartman

staging: lustre: change test to assert in LNetGetId

The ln_refcount test was changed into an assert.
Signed-off-by: default avatarJames Simmons <jsimmons@infradead.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 19b2056f
......@@ -2090,9 +2090,7 @@ LNetGetId(unsigned int index, lnet_process_id_t *id)
int cpt;
int rc = -ENOENT;
/* LNetNI initilization failed? */
if (!the_lnet.ln_refcount)
return rc;
LASSERT(the_lnet.ln_refcount > 0);
cpt = lnet_net_lock_current();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment