Evas textblock: Remove redundant NULL check.
authorTom Hacohen <tom@stosb.com>
Tue, 12 Jan 2016 10:59:52 +0000 (10:59 +0000)
committerTom Hacohen <tom@stosb.com>
Tue, 12 Jan 2016 11:00:01 +0000 (11:00 +0000)
Detected by smatch.

src/lib/evas/canvas/evas_object_textblock.c

index b5a17f1..70a9e3a 100644 (file)
@@ -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;