No need to check to see if `ec` is null, because if (!ec), we would've
caught the if (!base || !ds_buffer || !ec) early-return case.
Change-Id: Ie1d8a88d0dcf661717fa73b445fea0172f7518fe
if (!tsurface)
return EINA_FALSE;
- if ((ec) && (ec->comp_data->video_client))
+ if (ec->comp_data->video_client)
{
base->type = E_COMP_WL_BUFFER_TYPE_VIDEO;
base->w = base->h = 1;
base->format = 0;
}
- else if ((ec) && (e_client_video_hw_composition_check(ec)))
+ else if (e_client_video_hw_composition_check(ec))
{
base->type = E_COMP_WL_BUFFER_TYPE_VIDEO;
base->w = tbm_surface_get_width(tsurface);