summaryrefslogtreecommitdiffstats
path: root/drivers/parisc/sba_iommu.c
diff options
context:
space:
mode:
authorMatthew Wilcox2006-10-26 18:06:07 +0200
committerKyle McMartin2006-12-08 06:34:33 +0100
commitc2c4798e04ef836b12f5df04e7d1a1710cb39301 (patch)
tree244ce029f8032150523d91e83c14874dba1a13e7 /drivers/parisc/sba_iommu.c
parent[PARISC] parisc-agp: Fix integer/pointer warning (diff)
downloadkernel-qcow2-linux-c2c4798e04ef836b12f5df04e7d1a1710cb39301.tar.gz
kernel-qcow2-linux-c2c4798e04ef836b12f5df04e7d1a1710cb39301.tar.xz
kernel-qcow2-linux-c2c4798e04ef836b12f5df04e7d1a1710cb39301.zip
[PARISC] sparse fixes
0/NULL, missing __user, missing __iomem, non-ANSI prototype. Signed-off-by: Matthew Wilcox <willy@parisc-linux.org> Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
Diffstat (limited to 'drivers/parisc/sba_iommu.c')
-rw-r--r--drivers/parisc/sba_iommu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/parisc/sba_iommu.c b/drivers/parisc/sba_iommu.c
index f1e7ccd5475b..41abbed51ea7 100644
--- a/drivers/parisc/sba_iommu.c
+++ b/drivers/parisc/sba_iommu.c
@@ -846,7 +846,7 @@ static void *sba_alloc_consistent(struct device *hwdev, size_t size,
if (!hwdev) {
/* only support PCI */
*dma_handle = 0;
- return 0;
+ return NULL;
}
ret = (void *) __get_free_pages(gfp, get_order(size));