diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2010-04-20 18:41:30 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2010-04-20 18:41:30 +0000 |
commit | 0e10d9aaa1d3e6957b5617eef7117a7f1f97ba0b (patch) | |
tree | 4a87c22fb696360f490fb8932e1ee7daa985dc36 /sys/dev/pci | |
parent | 30c61438c1d6e6ece608e1b05afbb122870f9402 (diff) |
Nuke a few dead stores and one newly created unused variable.
found by clang static analyser
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/drm/i915_drv.c | 4 |
1 files changed, 0 insertions, 4 deletions
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); |