haptic: Modify return value check properly 89/314189/1 accepted/tizen/unified/20240711.011500 accepted/tizen/unified/dev/20240711.085733 accepted/tizen/unified/x/20240711.084602
authorYunhee Seo <yuni.seo@samsung.com>
Mon, 8 Jul 2024 08:00:11 +0000 (17:00 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Mon, 8 Jul 2024 08:00:11 +0000 (17:00 +0900)
commit0f653b51e29c6b550036761cfc30710b11dd757a
treef3367620b2e39548e977e057044e94366f3accd4
parentbaabdedd3381511603c658b02368be57ed2756cd
haptic: Modify return value check properly

If there is no vibration backend(device), hal-api-device returns -ENODEV through feedbackd.
However, that value goes to dbus getter variable not the return value of dbus call.
Thus, the return check code has been modified as intended.

Change-Id: If47d60bce6eadb0c9a09e2cbfc84d22f0a727ab6
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
src/haptic.c