mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-10 14:43:54 +08:00
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>
This commit is contained in:
parent
e59a9e50ec
commit
32f4797d03
@ -1797,11 +1797,7 @@ static u32 stv0367cab_get_mclk(struct dvb_frontend *fe, u32 ExtClk_Hz)
|
||||
|
||||
static u32 stv0367cab_get_adc_freq(struct dvb_frontend *fe, u32 ExtClk_Hz)
|
||||
{
|
||||
u32 ADCClk_Hz = ExtClk_Hz;
|
||||
|
||||
ADCClk_Hz = stv0367cab_get_mclk(fe, ExtClk_Hz);
|
||||
|
||||
return ADCClk_Hz;
|
||||
return stv0367cab_get_mclk(fe, ExtClk_Hz);
|
||||
}
|
||||
|
||||
static enum stv0367cab_mod stv0367cab_SetQamSize(struct stv0367_state *state,
|
||||
|
Loading…
Reference in New Issue
Block a user