projects
/
platform
/
core
/
api
/
device.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1dcfbfb
)
Add errno to device-error mapping for ENOTSUP
10/270610/3
author
Youngjae Cho
<y0.cho@samsung.com>
Mon, 7 Feb 2022 04:17:02 +0000
(13:17 +0900)
committer
Youngjae 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
patch
|
blob
|
history
diff --git
a/src/common.h
b/src/common.h
index
90fc373
..
819459c
100644
(file)
--- 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;
}