diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2015-11-09 09:21:27 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2016-01-11 11:15:10 +1000 |
commit | 77fc087f62a09acf14aa3c40b99641c27b94d21c (patch) | |
tree | 2f08d4d8700fe4147caff59cd62bf1b9c1051f8d /lib | |
parent | 5c6611f1887e723e830fbdcac8a4e2d537a0846c (diff) | |
download | nouveau-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |