From: Kenneth Graunke Date: Fri, 17 Aug 2018 06:47:58 +0000 (-0700) Subject: iris: drop dead assignments X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aad70ad8a15f7e4c4b3f3258dcd80cf3f92c0a29;p=mesa.git iris: drop dead assignments Eric's commit 9a6a6317629eb4c63d28860ded30778ac341ac63 --- 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;