From 5e00b25853ef2d5602d14f0e6039268cc89e6afe Mon Sep 17 00:00:00 2001 From: Aishwarya Pant Date: Sun, 12 Mar 2017 21:09:14 +0530 Subject: [PATCH] staging: bcm2835-audio: propagate PTR_ERR value instead of -EPERM It is better to propagate PTR_ERR value instead of a hardcoded value (-EPERM here) Signed-off-by: Aishwarya Pant Signed-off-by: Greg Kroah-Hartman --- drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c b/drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c index d596f43c2cea..698fdff24be7 100644 --- a/drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c +++ b/drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c @@ -436,7 +436,7 @@ static int bcm2835_audio_open_connection(struct bcm2835_alsa_stream *alsa_stream if (IS_ERR(instance)) { LOG_ERR("%s: failed to initialize audio service\n", __func__); - ret = -EPERM; + ret = PTR_ERR(instance); goto err_free_mem; } -- 2.20.1