Change return value for -ENOTSUP, -ENODEV and -ENOENT 16/251116/3
authorlokilee73 <changjoo.lee@samsung.com>
Fri, 8 Jan 2021 07:56:28 +0000 (16:56 +0900)
committerlokilee73 <changjoo.lee@samsung.com>
Fri, 8 Jan 2021 08:03:40 +0000 (17:03 +0900)
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 <changjoo.lee@samsung.com>
src/common.h

index ad87d86..5008b7f 100644 (file)
@@ -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;
        }