From: Dan Carpenter Date: Tue, 7 Feb 2017 13:17:34 +0000 (+0300) Subject: Staging: bcm2835-audio: fix an uninitialized return value X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0afad91356392ab53ce3b3438173972b78bf9089;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Staging: bcm2835-audio: fix an uninitialized return value "ret" isn't necessarily initialized on the success path. Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- 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");