diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2010-04-19 14:29:32 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2010-04-19 14:29:32 +0000 |
commit | 44e79357cc294f56424b59b3e6099e9c09a43ce9 (patch) | |
tree | 2d28581fce2dba5728993a0a17a006841f3c8b3e /sys/dev | |
parent | db9a8ffe0d28b0e8fefe51430553ccfe6a22028c (diff) |
Fix use of uninitialised variable.
found by Clang static analyser.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/drm/i915_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/i915_drv.c b/sys/dev/pci/drm/i915_drv.c index fbbc171f4e5..49c9677dfa9 100644 --- a/sys/dev/pci/drm/i915_drv.c +++ b/sys/dev/pci/drm/i915_drv.c @@ -4301,7 +4301,7 @@ i915_gem_bit_17_swizzle(struct drm_obj *obj) struct vm_page *pg; bus_dma_segment_t *segp; int page_count = obj->size >> PAGE_SHIFT; - int i, n, ret; + int i = 0, n = 0, ret; if (dev_priv->mm.bit_6_swizzle_x != I915_BIT_6_SWIZZLE_9_10_17 || obj_priv->bit_17 == NULL) |