From aad70ad8a15f7e4c4b3f3258dcd80cf3f92c0a29 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Thu, 16 Aug 2018 23:47:58 -0700 Subject: [PATCH] iris: drop dead assignments Eric's commit 9a6a6317629eb4c63d28860ded30778ac341ac63 --- src/gallium/drivers/iris/iris_bufmgr.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gallium/drivers/iris/iris_bufmgr.c b/src/gallium/drivers/iris/iris_bufmgr.c index aaeab521f97..450a28ae482 100644 --- a/src/gallium/drivers/iris/iris_bufmgr.c +++ b/src/gallium/drivers/iris/iris_bufmgr.c @@ -959,7 +959,6 @@ iris_bo_map_cpu(struct pipe_debug_callback *dbg, }; int ret = drm_ioctl(bufmgr->fd, DRM_IOCTL_I915_GEM_MMAP, &mmap_arg); if (ret != 0) { - ret = -errno; DBG("%s:%d: Error mapping buffer %d (%s): %s .\n", __FILE__, __LINE__, bo->gem_handle, bo->name, strerror(errno)); return NULL; @@ -1021,7 +1020,6 @@ iris_bo_map_wc(struct pipe_debug_callback *dbg, }; int ret = drm_ioctl(bufmgr->fd, DRM_IOCTL_I915_GEM_MMAP, &mmap_arg); if (ret != 0) { - ret = -errno; DBG("%s:%d: Error mapping buffer %d (%s): %s .\n", __FILE__, __LINE__, bo->gem_handle, bo->name, strerror(errno)); return NULL; -- 2.30.2