Skip to contentSkip to conversation

ARM: davinci: Use PTR_ERR_OR_ZERO at the end of dm646x_init_edma

PATCH New Mutharaju, Prasanna (P.) 1 participant 1 message Feb 1, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: davinci: Use PTR_ERR_OR_ZERO at the end of dm646x_init_edma

Making use of PTR_ERR_OR_ZERO helper function

---
 arch/arm/mach-davinci/dm646x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-davinci/dm646x.c +1 -1
index 70eb427..9984632 100644
@@ -938,7 +938,7 @@ int __init dm646x_init_edma(struct edma_rsv_info *rsv)
 	dm646x_edma_pdata.rsv = rsv;
 
 	edma_pdev = platform_device_register_full(&dm646x_edma_device);
-	return IS_ERR(edma_pdev) ? PTR_ERR(edma_pdev) : 0;
+	return PTR_ERR_OR_ZERO(edma_pdev);
 }
 
 void __init dm646x_init(void)
Signature · 1 line
1.9.1