summaryrefslogtreecommitdiff
path: root/src/lib/elput
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2016-07-13 11:40:12 -0400
committerChris Michael <cp.michael@samsung.com>2016-07-13 11:41:09 -0400
commit2437d5327806c3b1c489adf4e78018a7bcfa4ced (patch)
treefd2cb6326a79451e333ceb6ccbfbae4a69cfc661 /src/lib/elput
parente3b00d37b7abaa83b0f927130b230553091e8801 (diff)
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>
Diffstat (limited to 'src/lib/elput')
-rw-r--r--src/lib/elput/elput_input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elput/elput_input.c b/src/lib/elput/elput_input.c
index 5b2b1c5b5b..daa3675ff6 100644
--- a/src/lib/elput/elput_input.c
+++ b/src/lib/elput/elput_input.c
@@ -634,7 +634,7 @@ EAPI Eina_Stringshare *
634elput_input_device_output_name_get(Elput_Device *device) 634elput_input_device_output_name_get(Elput_Device *device)
635{ 635{
636 EINA_SAFETY_ON_NULL_RETURN_VAL(device, NULL); 636 EINA_SAFETY_ON_NULL_RETURN_VAL(device, NULL);
637 EINA_SAFETY_ON_NULL_RETURN_VAL(device->output_name, NULL);
638 637
638 if (!device->output_name) return NULL;
639 return eina_stringshare_ref(device->output_name); 639 return eina_stringshare_ref(device->output_name);
640} 640}