Commit 0afad913 authored by Dan Carpenter's avatar Dan Carpenter Committed by Greg Kroah-Hartman

Staging: bcm2835-audio: fix an uninitialized return value

"ret" isn't necessarily initialized on the success path.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 84472ecd
...@@ -432,6 +432,7 @@ static int bcm2835_audio_open_connection(struct bcm2835_alsa_stream *alsa_stream ...@@ -432,6 +432,7 @@ static int bcm2835_audio_open_connection(struct bcm2835_alsa_stream *alsa_stream
alsa_stream->instance = instance; alsa_stream->instance = instance;
LOG_DBG(" success !\n"); LOG_DBG(" success !\n");
ret = 0;
err_free_mem: err_free_mem:
LOG_DBG(" .. OUT\n"); LOG_DBG(" .. OUT\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment