remove unuseful error log 11/66811/1
authorBoram Park <boram1288.park@samsung.com>
Thu, 21 Apr 2016 07:20:32 +0000 (16:20 +0900)
committerBoram Park <boram1288.park@samsung.com>
Thu, 21 Apr 2016 07:20:32 +0000 (16:20 +0900)
Change-Id: Id215f5bf40d6f8b2563560f2683bc57b71062469

src/tdm_display.c

index 4a2d25e..e586665 100644 (file)
@@ -1386,20 +1386,21 @@ _tdm_layer_dump_buffer(tdm_layer *layer, tbm_surface_h buffer)
        int count;
        unsigned int pipe;
        int zpos;
+       char fullpath[PATH_MAX];
        tbm_surface_info_s info;
        tbm_surface_error_e err;
 
        path = tdm_helper_get_dump_path();
-       TDM_RETURN_IF_FAIL(path != NULL);
+       if (!path)
+               return;
 
        count = tdm_helper_get_dump_count();
-       TDM_RETURN_IF_FAIL(count != 0);
+       if (count <= 0)
+               return;
 
        err = tbm_surface_map(buffer, TBM_SURF_OPTION_READ, &info);
        TDM_RETURN_IF_FAIL(err == TBM_SURFACE_ERROR_NONE);
 
-       char fullpath[PATH_MAX] = {0, };
-
        pipe = private_output->pipe;
        zpos = private_layer->caps.zpos;