Patchwork [BUG:1816,1/1] libglusterfs/dict: Donot perform NULL check on data in dict_foreach

login
register
Submitter Mohammed Junaid Ahmed
Date 2011-04-12 13:41:32
Message ID <1302615692-22366-1-git-send-email-junaid@gluster.com>
Download mbox | patch
Permalink /patch/6823/
State Accepted
Headers show

Comments

Mohammed Junaid Ahmed - 2011-04-12 13:41:32
From: Junaid <junaid@gluster.com>


Signed-off-by: Junaid <junaid@gluster.com>
---
 libglusterfs/src/dict.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/libglusterfs/src/dict.c b/libglusterfs/src/dict.c
index 56ea68c..c8f43e3 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;
         }