From 0e10d9aaa1d3e6957b5617eef7117a7f1f97ba0b Mon Sep 17 00:00:00 2001 From: Owain Ainsworth Date: Tue, 20 Apr 2010 18:41:30 +0000 Subject: Nuke a few dead stores and one newly created unused variable. found by clang static analyser --- sys/dev/pci/drm/i915_drv.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'sys/dev/pci') diff --git a/sys/dev/pci/drm/i915_drv.c b/sys/dev/pci/drm/i915_drv.c index 305f35755ee..8db348f5c9d 100644 --- a/sys/dev/pci/drm/i915_drv.c +++ b/sys/dev/pci/drm/i915_drv.c @@ -1036,7 +1036,6 @@ i915_gem_pread_ioctl(struct drm_device *dev, void *data, obj = drm_gem_object_lookup(dev, file_priv, args->handle); if (obj == NULL) return (EBADF); - obj_priv = (struct inteldrm_obj *)obj; /* * Bounds check source. @@ -1107,7 +1106,6 @@ i915_gem_pwrite_ioctl(struct drm_device *dev, void *data, obj = drm_gem_object_lookup(dev, file_priv, args->handle); if (obj == NULL) return (EBADF); - obj_priv = (struct inteldrm_obj *)obj; DRM_LOCK(); /* Bounds check destination. */ @@ -3563,13 +3561,11 @@ void i915_gem_cleanup_hws(struct drm_i915_private *dev_priv) { struct drm_obj *obj; - struct inteldrm_obj *obj_priv; if (dev_priv->hws_obj == NULL) return; obj = dev_priv->hws_obj; - obj_priv = (struct inteldrm_obj *)obj; uvm_unmap(kernel_map, (vaddr_t)dev_priv->hw_status_page, (vaddr_t)dev_priv->hw_status_page + PAGE_SIZE); -- cgit v1.2.3