Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -2090,9 +2090,7 @@ LNetGetId(unsigned int index, lnet_process_id_t *id)
	int cpt;
	int cpt;
	int rc = -ENOENT;
	int rc = -ENOENT;


	/* LNetNI initilization failed? */
	LASSERT(the_lnet.ln_refcount > 0);
	if (!the_lnet.ln_refcount)
		return rc;


	cpt = lnet_net_lock_current();
	cpt = lnet_net_lock_current();