]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
Staging: bcm2835-audio: fix an uninitialized return value
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 7 Feb 2017 13:17:34 +0000 (16:17 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2017 12:16:45 +0000 (13:16 +0100)
"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>
drivers/staging/bcm2835-audio/bcm2835-vchiq.c

index 9ac1f72a178e2938366b4fa16d9c8042aa2729f3..b7922be4909c58ef281e76c3eb78d01b36d19446 100644 (file)
@@ -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");