summaryrefslogtreecommitdiffstats
path: root/drivers/staging/vc04_services/bcm2835-audio
diff options
context:
space:
mode:
authorAishwarya Pant <aishpant@gmail.com>2017-03-12 21:09:14 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-03-14 07:57:53 +0800
commit5e00b25853ef2d5602d14f0e6039268cc89e6afe (patch)
tree2033e4cd9506e9ca71512688bb5e8c646dd032a0 /drivers/staging/vc04_services/bcm2835-audio
parentd676e37fb656a091653b61c38357c228353f09fe (diff)
downloadop-kernel-dev-5e00b25853ef2d5602d14f0e6039268cc89e6afe.zip
op-kernel-dev-5e00b25853ef2d5602d14f0e6039268cc89e6afe.tar.gz
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 <aishpant@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vc04_services/bcm2835-audio')
-rw-r--r--drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c b/drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c
index d596f43..698fdff 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;
}
OpenPOWER on IntegriCloud