diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2010-12-20 20:15:44 -0500 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2010-12-20 20:53:38 -0500 |
commit | 910d1b3a8cec4fef20f11eb39e9ec6ac6e964b0e (patch) | |
tree | 83e3d913d7eab2f32b95952d8f0efb500070f9e6 | |
parent | d095e23206e6291cbde4b2937d1316a42d9e6440 (diff) |
drm/nv50: fix smatch warning in nv50_vram.c
Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r-- | drivers/gpu/drm/nouveau/nv50_vm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nv50_vm.c b/drivers/gpu/drm/nouveau/nv50_vm.c index eebab95f59b2..7939387f7f80 100644 --- a/drivers/gpu/drm/nouveau/nv50_vm.c +++ b/drivers/gpu/drm/nouveau/nv50_vm.c | |||
@@ -91,7 +91,8 @@ void | |||
91 | nv50_vm_map(struct nouveau_vma *vma, struct nouveau_gpuobj *pgt, | 91 | nv50_vm_map(struct nouveau_vma *vma, struct nouveau_gpuobj *pgt, |
92 | struct nouveau_vram *mem, u32 pte, u32 cnt, u64 phys) | 92 | struct nouveau_vram *mem, u32 pte, u32 cnt, u64 phys) |
93 | { | 93 | { |
94 | u32 block, i; | 94 | u32 block; |
95 | int i; | ||
95 | 96 | ||
96 | phys = nv50_vm_addr(vma, pgt, phys, mem->memtype, 0); | 97 | phys = nv50_vm_addr(vma, pgt, phys, mem->memtype, 0); |
97 | pte <<= 3; | 98 | pte <<= 3; |