diff options
author | Junaid <junaid@gluster.com> | 2011-04-12 08:09:24 +0000 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-04-12 21:50:36 -0700 |
commit | 8132c5317e1a7b261b5c4098f9b85e3e76e9708c (patch) | |
tree | f2887ef0cb41e9a81e04d0c52fd7da1779d88a64 /libglusterfs | |
parent | f0f90361f532065721362591b909edd3f2f22588 (diff) |
libglusterfs/dict: Donot perform NULL check on data in dict_foreach.
Signed-off-by: Junaid <junaid@gluster.com>
Signed-off-by: Anand Avati <avati@gluster.com>
BUG: 1816 (send volume options in friend add)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1816
Diffstat (limited to 'libglusterfs')
-rw-r--r-- | libglusterfs/src/dict.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libglusterfs/src/dict.c b/libglusterfs/src/dict.c index 05bcd4406..e1c87d994 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; } |