staging: lustre: Do not use 0 for NULL pointer in console.c
authorSachin Kamat <sachin.kamat@linaro.org>
Wed, 9 Oct 2013 10:28:27 +0000 (15:58 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Oct 2013 22:36:30 +0000 (15:36 -0700)
Do not use 0 for NULL pointer.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/selftest/console.c

index 09e4700af6405b5429dd2aa5c41f5485b29cd8f5..f1152e4fbcc41972fd115517348344d2122b9aa2 100644 (file)
@@ -797,7 +797,7 @@ lstcon_group_info(char *name, lstcon_ndlist_ent_t *gents_p,
                return rc;
        }
 
-       if (dents_up != 0) {
+       if (dents_up) {
                /* verbose query */
                rc = lstcon_nodes_getent(&grp->grp_ndl_list,
                                         index_p, count_p, dents_up);