From: lokilee73 Date: Fri, 8 Jan 2021 07:56:28 +0000 (+0900) Subject: Change return value for -ENOTSUP, -ENODEV and -ENOENT X-Git-Tag: accepted/tizen/unified/20210129.002304~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F16%2F251116%2F3;p=platform%2Fcore%2Fapi%2Fdevice.git Change return value for -ENOTSUP, -ENODEV and -ENOENT DEVICE_ERROR_NOT_SUPPORTED must be returned only when feature is not defined. So, change return value to DEVICE_ERROR_OPERATION_FAILED. Change-Id: Id4876d34e63c55d666458f58fef95c24eb77026f Signed-off-by: lokilee73 --- diff --git a/src/common.h b/src/common.h index ad87d86..5008b7f 100644 --- a/src/common.h +++ b/src/common.h @@ -47,10 +47,6 @@ static inline int errno_to_device_error(int err) return DEVICE_ERROR_PERMISSION_DENIED; //LCOV_EXCL_LINE System Error case -EBUSY: return DEVICE_ERROR_RESOURCE_BUSY; - case -ENOTSUP: - case -ENODEV: - case -ENOENT: - return DEVICE_ERROR_NOT_SUPPORTED; default: return DEVICE_ERROR_OPERATION_FAILED; }