evas: there is no effect of variable assignment while clean up.
authorSubodh Kumar <s7158.kumar@samsung.com>
Mon, 9 Oct 2017 23:41:19 +0000 (16:41 -0700)
committerCedric Bail <cedric@osg.samsung.com>
Mon, 9 Oct 2017 23:41:23 +0000 (16:41 -0700)
Summary:
There is no effect of assingning a variable while clean up.
@fix

Reviewers: raster, cedric

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D5272

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
src/lib/evas/common/language/evas_bidi_utils.c

index f04c825..fc9a35d 100644 (file)
@@ -242,7 +242,6 @@ evas_bidi_paragraph_props_get(const Eina_Unicode *eina_ustr, size_t len,
    if (!evas_bidi_is_rtl_str(eina_ustr) &&
        (base_bidi != EVAS_BIDI_PARAGRAPH_RTL))
      {
-        len = -1;
         goto cleanup;
      }
 
@@ -263,7 +262,6 @@ evas_bidi_paragraph_props_get(const Eina_Unicode *eina_ustr, size_t len,
    char_types = (EvasBiDiCharType *) malloc(sizeof(EvasBiDiCharType) * len);
    if (!char_types)
       {
-         len = -2;
          goto cleanup;
       }
    fribidi_get_bidi_types(ustr, len, char_types);
@@ -271,7 +269,6 @@ evas_bidi_paragraph_props_get(const Eina_Unicode *eina_ustr, size_t len,
    embedding_levels = (EvasBiDiLevel *)malloc(sizeof(EvasBiDiLevel) * len);
    if (!embedding_levels)
      {
-        len = -2;
         goto cleanup;
      }
 
@@ -290,7 +287,6 @@ evas_bidi_paragraph_props_get(const Eina_Unicode *eina_ustr, size_t len,
                       &direction,
                       embedding_levels + pos))
                {
-                  len = -2;
                   goto cleanup;
                }
 
@@ -317,7 +313,6 @@ evas_bidi_paragraph_props_get(const Eina_Unicode *eina_ustr, size_t len,
                  &direction,
                  embedding_levels + pos))
           {
-             len = -2;
              goto cleanup;
           }
 
@@ -336,7 +331,6 @@ evas_bidi_paragraph_props_get(const Eina_Unicode *eina_ustr, size_t len,
         if (!fribidi_get_par_embedding_levels(char_types, len,
                  &bidi_props->direction, embedding_levels))
           {
-             len = -2;
              goto cleanup;
           }
      }