* [PATCH] ARM: davinci: Use PTR_ERR_OR_ZERO at the end of dm646x_init_edma
@ 2016-02-01 9:58 Mutharaju, Prasanna (P.)
0 siblings, 0 replies; only message in thread
From: Mutharaju, Prasanna (P.) @ 2016-02-01 9:58 UTC (permalink / raw)
To: linux-arm-kernel
Making use of PTR_ERR_OR_ZERO helper function
Signed-off-by: Prasanna Karthik <mkarthi3@visteon.com>
---
arch/arm/mach-davinci/dm646x.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-davinci/dm646x.c b/arch/arm/mach-davinci/dm646x.c
index 70eb427..9984632 100644
--- a/arch/arm/mach-davinci/dm646x.c
+++ b/arch/arm/mach-davinci/dm646x.c
@@ -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)
--
1.9.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-02-01 9:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-01 9:58 [PATCH] ARM: davinci: Use PTR_ERR_OR_ZERO at the end of dm646x_init_edma Mutharaju, Prasanna (P.)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).