forked from Minki/linux
Staging: bcm2835-audio: fix an uninitialized return value
"ret" isn't necessarily initialized on the success path. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
84472ecd70
commit
0afad91356
@ -432,6 +432,7 @@ static int bcm2835_audio_open_connection(struct bcm2835_alsa_stream *alsa_stream
|
||||
alsa_stream->instance = instance;
|
||||
|
||||
LOG_DBG(" success !\n");
|
||||
ret = 0;
|
||||
err_free_mem:
|
||||
LOG_DBG(" .. OUT\n");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user