Add errno to device-error mapping for ENOTSUP 10/270610/3
authorYoungjae Cho <y0.cho@samsung.com>
Mon, 7 Feb 2022 04:17:02 +0000 (13:17 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Mon, 7 Feb 2022 06:33:56 +0000 (15:33 +0900)
Change-Id: I43d470a61053b0ce1284ca45b4cb2251d51398ad
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
src/common.h

index 90fc373..819459c 100644 (file)
@@ -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;
        }