ecore_drm: Check list presence by NULL test instead of counting

a count of < 1 will just be a NULL pointer, and a count of > 0 will
be non NULL, so we can simplify these conditionals.
This commit is contained in:
Derek Foreman 2016-02-18 13:34:23 -06:00 committed by Mike Blumenkrantz
parent d53e1d6748
commit fbf8ee656c
1 changed files with 2 additions and 2 deletions

View File

@ -792,7 +792,7 @@ _ecore_drm_outputs_update(Ecore_Drm_Device *dev)
if (!(dev->conn_allocator & (1 << conn_id)))
{
if (eina_list_count(dev->outputs) > 0)
if (dev->outputs)
{
Ecore_Drm_Output *last;
@ -958,7 +958,7 @@ next:
}
ret = EINA_TRUE;
if (eina_list_count(dev->outputs) < 1)
if (!dev->outputs)
ret = EINA_FALSE;
/* free resources */