summaryrefslogtreecommitdiff
path: root/lib/drm.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/drm.c')
-rw-r--r--lib/drm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/drm.c b/lib/drm.c
index bb96a7f2..39bc3695 100644
--- a/lib/drm.c
+++ b/lib/drm.c
@@ -89,11 +89,11 @@ drm_client_notify(void *repv, u32 repc)
u32 size = repc;
u64 token;
u8 route;
- int ret;
+ int ret = -ENODEV;
printf("notify %d\n", repc);
- if (nvif_unpack(rep->v0, 0, 0, true)) {
+ if (!(ret = nvif_unpack(ret, &data, &size, rep->v0, 0, 0, true))) {
token = rep->v0.token;
route = rep->v0.route;
} else