summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-10-18 13:29:26 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-10-18 13:29:26 -0400
commit9ea26fd88fe54b1dc6a46627c26b1176aaeec899 (patch)
tree58886fd947cb661f5e7015aca34ef709b292eda1 /src
parent7b93d492d6a4c82079b408961392ccbd588db342 (diff)
efl/boolean_model: remove misleading null check
Summary: this is always a pointer to a stack variable CID 1405799 Reviewers: cedric Reviewed By: cedric Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10444
Diffstat (limited to 'src')
-rw-r--r--src/lib/ecore/efl_boolean_model.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ecore/efl_boolean_model.c b/src/lib/ecore/efl_boolean_model.c
index 3d9aef6..3eaad88 100644
--- a/src/lib/ecore/efl_boolean_model.c
+++ b/src/lib/ecore/efl_boolean_model.c
@@ -105,7 +105,7 @@ _storage_lookup(Efl_Boolean_Model_Data *pd,
105 lookup->offset = v->last ? v->last->offset + v->last->length + 1 : 0; 105 lookup->offset = v->last ? v->last->offset + v->last->length + 1 : 0;
106 lookup->length = sizeof (lookup->buffer) * 8; // Number of bits in the buffer 106 lookup->length = sizeof (lookup->buffer) * 8; // Number of bits in the buffer
107 // Initialize the buffer to the right default value 107 // Initialize the buffer to the right default value
108 if (default_value) memset(&lookup->buffer[0], *default_value, sizeof (lookup->buffer)); 108 memset(&lookup->buffer[0], *default_value, sizeof (lookup->buffer));
109 109
110 v->buffers_root = eina_rbtree_inline_insert(v->buffers_root, EINA_RBTREE_GET(lookup), 110 v->buffers_root = eina_rbtree_inline_insert(v->buffers_root, EINA_RBTREE_GET(lookup),
111 EINA_RBTREE_CMP_NODE_CB(_storage_range_cmp), NULL); 111 EINA_RBTREE_CMP_NODE_CB(_storage_range_cmp), NULL);