Whamcloud - gitweb
LU-1078 lnet: two minor issues in lnet
authorBob Glossman <bogl@whamcloud.com>
Tue, 8 May 2012 22:18:45 +0000 (15:18 -0700)
committerOleg Drokin <green@whamcloud.com>
Sat, 12 May 2012 02:32:53 +0000 (22:32 -0400)
Fix typos, 1 in a doxygen comment, 1 in a failure test

Signed-off-by: Bob Glossman <bogl@whamcloud.com>
Change-Id: I09a2f4f3e2762f8826e075ef5de2d6d2d6fb6f13
Reviewed-on: http://review.whamcloud.com/2692
Reviewed-by: Liang Zhen <liang@whamcloud.com>
Tested-by: Hudson
Reviewed-by: Isaac Huang <Isaac_Huang@xyratex.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/lnet/api-ni.c
lnet/selftest/conctl.c

index b4c694d..07b9f68 100644 (file)
@@ -1243,7 +1243,7 @@ LNetFini(void)
  *
  * \param requested_pid PID requested by the caller.
  *
  *
  * \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)
  */
 int
 LNetNIInit(lnet_pid_t requested_pid)
index 6e11275..901b6e2 100644 (file)
@@ -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);
                 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) {
                 goto out;
 
         if (args->lstio_tes_param != NULL) {