staging: lustre: change test to assert in LNetGetId
The ln_refcount test was changed into an assert. Signed-off-by: James Simmons <jsimmons@infradead.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
19b2056ff7
commit
31b36ec650
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue