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>
This commit is contained in:

committed by
Michael Ellerman

parent
db38f290ca
commit
09652b00cd
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user