summaryrefslogtreecommitdiffstats
path: root/drivers/staging/lustre
diff options
context:
space:
mode:
authorJames Simmons2016-03-08 00:10:22 +0100
committerGreg Kroah-Hartman2016-03-08 01:17:45 +0100
commit31b36ec65007f18c485ede7920ec3e1ea9614414 (patch)
tree7dc0dc04027c9230731c6df3e76fe2caca72c111 /drivers/staging/lustre
parentstaging: lustre: Correct missing newline (diff)
downloadkernel-qcow2-linux-31b36ec65007f18c485ede7920ec3e1ea9614414.tar.gz
kernel-qcow2-linux-31b36ec65007f18c485ede7920ec3e1ea9614414.tar.xz
kernel-qcow2-linux-31b36ec65007f18c485ede7920ec3e1ea9614414.zip
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>
Diffstat (limited to 'drivers/staging/lustre')
-rw-r--r--drivers/staging/lustre/lnet/lnet/api-ni.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/lustre/lnet/lnet/api-ni.c b/drivers/staging/lustre/lnet/lnet/api-ni.c
index a666d49016f4..6c7579e42b88 100644
--- a/drivers/staging/lustre/lnet/lnet/api-ni.c
+++ b/drivers/staging/lustre/lnet/lnet/api-ni.c
@@ -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();