media: dvb-frontends/stv0367: remove redundant variable ADCClk_Hz
authorColin Ian King <colin.king@canonical.com>
Thu, 14 Oct 2021 15:32:53 +0000 (16:32 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 19 Nov 2021 16:09:07 +0000 (16:09 +0000)
commit32f4797d03b581aec1e20347e95bd36d6c2fd6cd
treee3e6dd5ebcd429551da0566bf3a8f84fabced94c
parente59a9e50ec8c421818c10df6e619cec9cc9ed4e8
media: dvb-frontends/stv0367: remove redundant variable ADCClk_Hz

GIT_AUTHOR_NAME=Colin King
GIT_AUTHOR_EMAIL=colin.king@canonical.com

Variable ADCClk_Hz is being initialised with a variable that is never read
and then re-assigned immediately afterwards. Clean up the code by removing
it and just returning the return value from the call to stv0367cab_get_mclk

Addresses-Coverity: ("Unused value")

Link: https://lore.kernel.org/linux-media/20211014153253.63527-1-colin.king@canonical.com
Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/dvb-frontends/stv0367.c