ecore-drm2: simplify output name checking on device change

eina_streq handles null and stringshare params
This commit is contained in:
Mike Blumenkrantz 2017-05-26 16:34:10 -04:00
parent b09c6f1f3e
commit 737f64b822
1 changed files with 1 additions and 2 deletions

View File

@ -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);