Skip to content

Commit

Permalink
drm/nv50: fix smatch warning in nv50_vram.c
Browse files Browse the repository at this point in the history
Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
  • Loading branch information
Ben Skeggs committed Dec 21, 2010
1 parent d095e23 commit 910d1b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/gpu/drm/nouveau/nv50_vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ void
nv50_vm_map(struct nouveau_vma *vma, struct nouveau_gpuobj *pgt,
struct nouveau_vram *mem, u32 pte, u32 cnt, u64 phys)
{
u32 block, i;
u32 block;
int i;

phys = nv50_vm_addr(vma, pgt, phys, mem->memtype, 0);
pte <<= 3;
Expand Down

0 comments on commit 910d1b3

Please sign in to comment.