From af87eb992d7810f48f7384bcd5837c6687466892 Mon Sep 17 00:00:00 2001 From: lokilee73 Date: Fri, 8 Jan 2021 16:56:28 +0900 Subject: [PATCH] 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 --- src/common.h | 4 ---- 1 file changed, 4 deletions(-) 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; } -- 2.7.4