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:
Chris Michael 2016-07-13 11:40:12 -04:00
parent e3b00d37b7
commit 2437d53278
1 changed files with 1 additions and 1 deletions

View File

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