forked from enlightenment/efl
elput: Cleanup erroneous errors when trying to get output name
When we make calls to get an Input device's output name, if the device does not have an output name it's not actually an error so just return NULL with less noise @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
e3b00d37b7
commit
2437d53278
|
@ -634,7 +634,7 @@ EAPI Eina_Stringshare *
|
|||
elput_input_device_output_name_get(Elput_Device *device)
|
||||
{
|
||||
EINA_SAFETY_ON_NULL_RETURN_VAL(device, NULL);
|
||||
EINA_SAFETY_ON_NULL_RETURN_VAL(device->output_name, NULL);
|
||||
|
||||
if (!device->output_name) return NULL;
|
||||
return eina_stringshare_ref(device->output_name);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue