tasn pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=987fde58a7ed10b6aef7aea069ae1bc129191430

commit 987fde58a7ed10b6aef7aea069ae1bc129191430
Author: Tom Hacohen <t...@stosb.com>
Date:   Tue Jan 12 10:59:52 2016 +0000

    Evas textblock: Remove redundant NULL check.
    
    Detected by smatch.
---
 src/lib/evas/canvas/evas_object_textblock.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/evas/canvas/evas_object_textblock.c 
b/src/lib/evas/canvas/evas_object_textblock.c
index b5a17f1..70a9e3a 100644
--- a/src/lib/evas/canvas/evas_object_textblock.c
+++ b/src/lib/evas/canvas/evas_object_textblock.c
@@ -5515,7 +5515,7 @@ _layout_par(Ctxt *c)
 
    if (c->ln->items)
      {
-        if (c->par && !EINA_INLIST_GET(c->par)->next)
+        if (!EINA_INLIST_GET(c->par)->next)
           {
              c->position = (c->position == TEXTBLOCK_POSITION_START) ?
                 TEXTBLOCK_POSITION_SINGLE : TEXTBLOCK_POSITION_END;

-- 


Reply via email to