From 1b18a7d64574ca08b937113fcb19b9d851abd43c Mon Sep 17 00:00:00 2001 From: Junaid Date: Tue, 12 Apr 2011 08:11:32 +0000 Subject: libglusterfs/dict: Donot perform NULL check on data in dict_foreach Signed-off-by: Junaid Signed-off-by: Anand Avati BUG: 1816 (send volume options in friend add) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1816 --- libglusterfs/src/dict.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libglusterfs') diff --git a/libglusterfs/src/dict.c b/libglusterfs/src/dict.c index 56ea68cd00e..c8f43e3161c 100644 --- a/libglusterfs/src/dict.c +++ b/libglusterfs/src/dict.c @@ -1184,9 +1184,9 @@ dict_foreach (dict_t *dict, void *data), void *data) { - if (!data || !dict) { + if (!dict) { gf_log_callingfn ("dict", GF_LOG_WARNING, - "data OR dict is NULL"); + "dict is NULL"); return; } -- cgit