From 128b84135aafa1a2d49b8c05feeb2ac3ccdd3294 Mon Sep 17 00:00:00 2001 From: Bob Glossman Date: Tue, 8 May 2012 15:18:45 -0700 Subject: [PATCH] LU-1078 lnet: two minor issues in lnet Fix typos, 1 in a doxygen comment, 1 in a failure test Signed-off-by: Bob Glossman Change-Id: I09a2f4f3e2762f8826e075ef5de2d6d2d6fb6f13 Reviewed-on: http://review.whamcloud.com/2692 Reviewed-by: Liang Zhen Tested-by: Hudson Reviewed-by: Isaac Huang Tested-by: Maloo Reviewed-by: Oleg Drokin --- lnet/lnet/api-ni.c | 2 +- lnet/selftest/conctl.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lnet/lnet/api-ni.c b/lnet/lnet/api-ni.c index b4c694d..07b9f68 100644 --- a/lnet/lnet/api-ni.c +++ b/lnet/lnet/api-ni.c @@ -1243,7 +1243,7 @@ LNetFini(void) * * \param requested_pid PID requested by the caller. * - * \return 0 on success, and non-zero error code on failures. + * \return >= 0 on success, and < 0 error code on failures. */ int LNetNIInit(lnet_pid_t requested_pid) diff --git a/lnet/selftest/conctl.c b/lnet/selftest/conctl.c index 6e11275..901b6e2 100644 --- a/lnet/selftest/conctl.c +++ b/lnet/selftest/conctl.c @@ -749,7 +749,7 @@ int lst_test_add_ioctl(lstio_test_args_t *args) goto out; LIBCFS_ALLOC(dstgrp, args->lstio_tes_dgrp_nmlen + 1); - if (srcgrp == NULL) + if (dstgrp == NULL) goto out; if (args->lstio_tes_param != NULL) { -- 1.8.3.1