Ver código fonte

[PATCH] powerpc: minor dart driver cleanup

Rpn is assigned every time in the loop, no need to increase it too.

Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Olof Johansson 19 anos atrás
pai
commit
b07dfab3e3
1 arquivos alterados com 0 adições e 1 exclusões
  1. 0 1
      arch/powerpc/sysdev/dart_iommu.c

+ 0 - 1
arch/powerpc/sysdev/dart_iommu.c

@@ -139,7 +139,6 @@ static void dart_build(struct iommu_table *tbl, long index,
 
 		*(dp++) = DARTMAP_VALID | (rpn & DARTMAP_RPNMASK);
 
-		rpn++;
 		uaddr += DART_PAGE_SIZE;
 	}