diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2017-02-07 16:17:34 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-02-09 13:16:45 +0100 |
commit | 0afad91356392ab53ce3b3438173972b78bf9089 (patch) | |
tree | a464e8d19bdaea84865596a2b7a365152ee5e1f7 /drivers/staging/bcm2835-audio | |
parent | 84472ecd7074576143aaf2772a304138fa4f1a09 (diff) |
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>
Diffstat (limited to 'drivers/staging/bcm2835-audio')
-rw-r--r-- | drivers/staging/bcm2835-audio/bcm2835-vchiq.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/bcm2835-audio/bcm2835-vchiq.c b/drivers/staging/bcm2835-audio/bcm2835-vchiq.c index 9ac1f72a178e..b7922be4909c 100644 --- a/drivers/staging/bcm2835-audio/bcm2835-vchiq.c +++ b/drivers/staging/bcm2835-audio/bcm2835-vchiq.c @@ -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"); |