From b7ac840ffd44ccfc7921e0cc967d08859bdab1b4 Mon Sep 17 00:00:00 2001 From: Youngjae Cho Date: Mon, 7 Feb 2022 13:17:02 +0900 Subject: [PATCH] Add errno to device-error mapping for ENOTSUP Change-Id: I43d470a61053b0ce1284ca45b4cb2251d51398ad Signed-off-by: Youngjae Cho --- src/common.h | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.7.4