ecore-drm2: simplify output name checking on device change
eina_streq handles null and stringshare params
This commit is contained in:
parent
b09c6f1f3e
commit
737f64b822
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue