Skip to content

Commit 5e00b25

Browse files
aishpantgregkh
authored andcommitted
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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent d676e37 commit 5e00b25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ static int bcm2835_audio_open_connection(struct bcm2835_alsa_stream *alsa_stream
436436
if (IS_ERR(instance)) {
437437
LOG_ERR("%s: failed to initialize audio service\n", __func__);
438438

439-
ret = -EPERM;
439+
ret = PTR_ERR(instance);
440440
goto err_free_mem;
441441
}
442442

0 commit comments

Comments
 (0)