summaryrefslogtreecommitdiff
path: root/arch/powerpc/kernel/iommu.c
diff options
context:
space:
mode:
authorAdrian-Leonard Radu <ady8radu@gmail.com>2013-03-10 07:07:00 +0400
committerMichael Ellerman <michael@ellerman.id.au>2013-04-18 07:03:48 +0400
commit09652b00cd249a1f1a2cd1a70d31e880f24d06cc (patch)
tree58998dab4044865704d120ce3bf4b2496778ba07 /arch/powerpc/kernel/iommu.c
parentdb38f290cadc16304b84f6d18cbaa06251dde875 (diff)
downloadlinux-09652b00cd249a1f1a2cd1a70d31e880f24d06cc.tar.xz
powerpc: Use PTR_RET instead of IS_ERR/PTR_ERR
Signed-off-by: Adrian-Leonard Radu <ady8radu@gmail.com> Acked-by: Geoff Levand <geoff@infradead.org> Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
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 31c4fdc6859c..c0d0dbddfba1 100644
--- a/arch/powerpc/kernel/iommu.c
+++ b/arch/powerpc/kernel/iommu.c
@@ -102,7 +102,7 @@ static int __init fail_iommu_debugfs(void)
struct dentry *dir = fault_create_debugfs_attr("fail_iommu",
NULL, &fail_iommu);
- return IS_ERR(dir) ? PTR_ERR(dir) : 0;
+ return PTR_RET(dir);
}
late_initcall(fail_iommu_debugfs);