summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYunmi Ha <yunmi.ha@samsung.com>2021-03-12 11:30:47 +0900
committerYunmi Ha <yunmi.ha@samsung.com>2021-03-12 11:30:47 +0900
commitdc31b1568c11062a825ebae62466081a57e641cd (patch)
tree4a4cae97fc32f0f67809a0b148fc0841bdda51e6
parent3cca1823e9abcec8d43cac400347afd075a6d128 (diff)
downloaddevice-emulator-dc31b1568c11062a825ebae62466081a57e641cd.tar.gz
device-emulator-dc31b1568c11062a825ebae62466081a57e641cd.tar.bz2
device-emulator-dc31b1568c11062a825ebae62466081a57e641cd.zip
memory: change return value when node is not supported
Change-Id: I9522448ace6d46f80ffe4099314c133c41a1657d Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
-rw-r--r--hw/memory/memory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/memory/memory.c b/hw/memory/memory.c
index 908907a..c817047 100644
--- a/hw/memory/memory.c
+++ b/hw/memory/memory.c
@@ -25,12 +25,12 @@
static int memory_get_gpu_info(const int pid, struct gpu_info *info)
{
- return -EINVAL;
+ return -ENODEV;
}
static int memory_get_gem_info(const int pid, struct gem_info *info)
{
- return -EINVAL;
+ return -ENODEV;
}
static int memory_init(void **data)