From: Eric Engestrom Date: Thu, 16 Aug 2018 14:49:24 +0000 (+0100) Subject: i965: drop unused assignment X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9a6a6317629eb4c63d28860ded30778ac341ac63;p=mesa.git i965: drop unused assignment Signed-off-by: Eric Engestrom Reviewed-by: Lionel Landwerlin --- diff --git a/src/mesa/drivers/dri/i965/brw_bufmgr.c b/src/mesa/drivers/dri/i965/brw_bufmgr.c index b0f83fb8320..f1675b191c1 100644 --- a/src/mesa/drivers/dri/i965/brw_bufmgr.c +++ b/src/mesa/drivers/dri/i965/brw_bufmgr.c @@ -980,7 +980,6 @@ brw_bo_map_cpu(struct brw_context *brw, struct brw_bo *bo, unsigned flags) }; int ret = drmIoctl(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; @@ -1044,7 +1043,6 @@ brw_bo_map_wc(struct brw_context *brw, struct brw_bo *bo, unsigned flags) }; int ret = drmIoctl(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;