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:
James Simmons 2016-03-07 18:10:22 -05:00 committed by Greg Kroah-Hartman
parent 19b2056ff7
commit 31b36ec650
1 changed files with 1 additions and 3 deletions

View File

@ -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();