aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore_drm2/ecore_drm2_device.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-05-26 16:34:10 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-05-26 16:27:43 -0400
commit737f64b822659dfee595f77efd3f78dd2eee9a78 (patch)
treea7c84b0abca17c8c6213ffe1f0eb96467da59a90 /src/lib/ecore_drm2/ecore_drm2_device.c
parentelput: start elput_device_ and elput_seat_ namespaces, rename some functions (diff)
downloadefl-737f64b822659dfee595f77efd3f78dd2eee9a78.tar.gz
ecore-drm2: simplify output name checking on device change
eina_streq handles null and stringshare params
Diffstat (limited to 'src/lib/ecore_drm2/ecore_drm2_device.c')
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_device.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_device.c b/src/lib/ecore_drm2/ecore_drm2_device.c
index c61afcdb3c..73805c82b4 100644
--- a/src/lib/ecore_drm2/ecore_drm2_device.c
+++ b/src/lib/ecore_drm2/ecore_drm2_device.c
@@ -59,8 +59,7 @@ _cb_device_change(void *data, int type EINA_UNUSED, void *event)
{
EINA_LIST_FOREACH(device->outputs, l, output)
{
- if ((output->name) &&
- (!strcmp(output->name, name)))
+ if (eina_streq(output->name, name))
{
ecore_drm2_device_calibrate(device,
output->w, output->h);