summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2016-02-18 13:34:23 -0600
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-02-18 15:50:16 -0500
commitfbf8ee656c4733d283527597cb9b7270fe503807 (patch)
treee53a017e0ee8f77641b52d814cec0303b90b1a1e /src/lib/ecore_drm
parentd53e1d6748f07f46e9c6abc791651cdc78c0bc86 (diff)
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.
Diffstat (limited to 'src/lib/ecore_drm')
-rw-r--r--src/lib/ecore_drm/ecore_drm_output.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ecore_drm/ecore_drm_output.c b/src/lib/ecore_drm/ecore_drm_output.c
index 9322ab9f40..79df7ef005 100644
--- a/src/lib/ecore_drm/ecore_drm_output.c
+++ b/src/lib/ecore_drm/ecore_drm_output.c
@@ -792,7 +792,7 @@ _ecore_drm_outputs_update(Ecore_Drm_Device *dev)
792 792
793 if (!(dev->conn_allocator & (1 << conn_id))) 793 if (!(dev->conn_allocator & (1 << conn_id)))
794 { 794 {
795 if (eina_list_count(dev->outputs) > 0) 795 if (dev->outputs)
796 { 796 {
797 Ecore_Drm_Output *last; 797 Ecore_Drm_Output *last;
798 798
@@ -958,7 +958,7 @@ next:
958 } 958 }
959 959
960 ret = EINA_TRUE; 960 ret = EINA_TRUE;
961 if (eina_list_count(dev->outputs) < 1) 961 if (!dev->outputs)
962 ret = EINA_FALSE; 962 ret = EINA_FALSE;
963 963
964 /* free resources */ 964 /* free resources */