Evas textblock: Remove redundant NULL check. 34/82234/3
authorPankaj Mittal <m.pankaj@samsung.com>
Tue, 2 Aug 2016 06:49:51 +0000 (12:19 +0530)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Fri, 5 Aug 2016 04:50:31 +0000 (21:50 -0700)
this issue was a fix for problem Detected by smatch
This is ported from upstream.

Signed-off-by: Pankaj Mittal <m.pankaj@samsung.com>
Change-Id: I80fc34c11f811b0d69a79fb2db7b9b4db013b049

src/lib/evas/canvas/evas_object_textblock.c

index a4d2986..4de1e69 100644 (file)
@@ -5624,7 +5624,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;