summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorCharles Longeau <chl@cvs.openbsd.org>2009-02-08 20:03:29 +0000
committerCharles Longeau <chl@cvs.openbsd.org>2009-02-08 20:03:29 +0000
commita58a43c840b35e9a888e00acbe988a9cc036e704 (patch)
tree5d701262637d6b1131185492c5d9038f4dde6046 /sys
parent31ecdb82603ea33cd02f38417e0f6690edb6c04d (diff)
remove dead assignment and newly created unused variable.
found by LLVM/Clang Static Analyzer. ok oga@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/drm/radeon_state.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/radeon_state.c b/sys/dev/pci/drm/radeon_state.c
index a2e318bfef6..fd528ae21a4 100644
--- a/sys/dev/pci/drm/radeon_state.c
+++ b/sys/dev/pci/drm/radeon_state.c
@@ -2358,7 +2358,6 @@ int radeon_cp_indices(struct drm_device *dev, void *data, struct drm_file *file_
struct drm_buf *buf;
drm_radeon_indices_t *elts = data;
drm_radeon_tcl_prim_t prim;
- int count;
LOCK_TEST_WITH_RETURN(dev, file_priv);
@@ -2397,7 +2396,6 @@ int radeon_cp_indices(struct drm_device *dev, void *data, struct drm_file *file_
return EINVAL;
}
- count = (elts->end - elts->start) / sizeof(u16);
elts->start -= RADEON_INDEX_PRIM_OFFSET;
if (elts->start & 0x7) {