summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/iommu.c
diff options
context:
space:
mode:
authorNick Piggin <npiggin@suse.de>2006-10-04 17:25:44 +0200
committerPaul Mackerras <paulus@samba.org>2006-10-06 21:10:40 +1000
commit13a2eea1461f5d54cc5d58334fbde4bf4cc9cb23 (patch)
tree8abddbfbc8b80c911ed6e82dc1678b9ca542c93f /arch/powerpc/kernel/iommu.c
parent3211be5c6a61946c75318069611699c90b10e0f8 (diff)
downloadop-kernel-dev-13a2eea1461f5d54cc5d58334fbde4bf4cc9cb23.zip
op-kernel-dev-13a2eea1461f5d54cc5d58334fbde4bf4cc9cb23.tar.gz
[POWERPC] Fix harmless typo
Fix a typo. Noticed by the unlikely profiler. Signed-off-by: Nick Piggin <npiggin@suse.de> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/iommu.c')
-rw-r--r--arch/powerpc/kernel/iommu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/iommu.c b/arch/powerpc/kernel/iommu.c
index ba06940..f88a2a6 100644
--- a/arch/powerpc/kernel/iommu.c
+++ b/arch/powerpc/kernel/iommu.c
@@ -75,7 +75,7 @@ static unsigned long iommu_range_alloc(struct iommu_table *tbl,
/* This allocator was derived from x86_64's bit string search */
/* Sanity check */
- if (unlikely(npages) == 0) {
+ if (unlikely(npages == 0)) {
if (printk_ratelimit())
WARN_ON(1);
return DMA_ERROR_CODE;
OpenPOWER on IntegriCloud