tbm_surface_internal: donot set error type 41/259941/1
authorSooChan Lim <sc1.lim@samsung.com>
Thu, 17 Jun 2021 01:34:36 +0000 (10:34 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Thu, 17 Jun 2021 01:34:36 +0000 (10:34 +0900)
the error type should be set by hal backend.

Change-Id: I4a7c47d8a091c01c124d09072462ae18a317ea8b

src/tbm_surface_internal.c

index e2a2dc3..5089c60 100644 (file)
@@ -2966,9 +2966,6 @@ tbm_surface_internal_export(tbm_surface_h surface, tbm_error_e *error)
 
        TBM_TRACE_SURFACE_INTERNAL("tbm_surface(%p) buffer_data(%p)", surface, buffer_data);
 
-       if (error)
-               *error = TBM_ERROR_NONE;
-
        _tbm_set_last_result(TBM_ERROR_NONE);
        _tbm_surface_mutex_unlock();