mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-22 05:44:31 +08:00
media: tda18271: remove redundant assignment to variable bcal
The variable bcal is being initialized with a value that is never read, it is being re-assigned in both paths of an if statement near the end of the function. The initialization is redundant and can be removed. Cleans up clang scan build warning: drivers/media/tuners/tda18271-fe.c:473:2: warning: Value stored to 'bcal' is never read [deadcode.DeadStores] Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
parent
ee0f867465
commit
83b1a46d6e
@ -470,7 +470,6 @@ static int tda18271_powerscan(struct dvb_frontend *fe,
|
||||
/* algorithm initialization */
|
||||
sgn = 1;
|
||||
*freq_out = *freq_in;
|
||||
bcal = 0;
|
||||
count = 0;
|
||||
wait = false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user