summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2015-11-09 09:21:27 +1000
committerBen Skeggs <bskeggs@redhat.com>2016-01-11 11:15:10 +1000
commit77fc087f62a09acf14aa3c40b99641c27b94d21c (patch)
tree2f08d4d8700fe4147caff59cd62bf1b9c1051f8d /lib
parent5c6611f1887e723e830fbdcac8a4e2d537a0846c (diff)
downloadnouveau-77fc087f62a09acf14aa3c40b99641c27b94d21c.tar.gz
nvif: modify nvif_unvers/nvif_unpack macros to be more obvious
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/drm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/drm.c b/lib/drm.c
index bb96a7f2d..39bc36955 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