Patchwork [BRANCH:release-3.1,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:39:24
Message ID <1302615564-22100-1-git-send-email-junaid@gluster.com>
Download mbox | patch
Permalink /patch/6822/
State Accepted
Headers show

Comments

Mohammed Junaid Ahmed - 2011-04-12 13:39:24
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 05bcd44..e1c87d9 100644
--- a/libglusterfs/src/dict.c
+++ b/libglusterfs/src/dict.c
@@ -1236,9 +1236,9 @@  dict_foreach (dict_t *dict,
 			 void *data),
 	      void *data)
 {
-        if (!data || !dict) {
+        if (!dict) {
                 gf_log_callingfn ("dict", GF_LOG_CRITICAL,
-                        "@data=%p, @dict=%p", data, dict);
+                                  "@dict=%p", dict);
                 return;
         }