mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
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
1 changed files with 1 additions and 3 deletions
|
|
@ -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 a new issue