From: Youngjae Cho Date: Mon, 7 Feb 2022 04:17:02 +0000 (+0900) Subject: Add errno to device-error mapping for ENOTSUP X-Git-Tag: submit/tizen_6.5/20220208.052648~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e2f84ee8be72ab8e84d1433233e7156023500b39;p=platform%2Fcore%2Fapi%2Fdevice.git Add errno to device-error mapping for ENOTSUP Change-Id: I43d470a61053b0ce1284ca45b4cb2251d51398ad Signed-off-by: Youngjae Cho (cherry picked from commit b7ac840ffd44ccfc7921e0cc967d08859bdab1b4) --- diff --git a/src/common.h b/src/common.h index 90fc373..819459c 100644 --- a/src/common.h +++ b/src/common.h @@ -47,6 +47,8 @@ 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: + return DEVICE_ERROR_NOT_SUPPORTED; default: return DEVICE_ERROR_OPERATION_FAILED; }