[PATCH 06/10] staging: lustre: Do not use 0 for NULL pointer in console.c

Sachin Kamat sachin.kamat at linaro.org
Wed Oct 9 10:28:27 UTC 2013


Do not use 0 for NULL pointer.

Signed-off-by: Sachin Kamat <sachin.kamat at linaro.org>
---
 drivers/staging/lustre/lnet/selftest/console.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/lustre/lnet/selftest/console.c b/drivers/staging/lustre/lnet/selftest/console.c
index 09e4700..f1152e4 100644
--- a/drivers/staging/lustre/lnet/selftest/console.c
+++ b/drivers/staging/lustre/lnet/selftest/console.c
@@ -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);
-- 
1.7.9.5



More information about the devel mailing list