media: tda18271: remove redundant assignment to variable bcal
authorColin Ian King <colin.i.king@gmail.com>
Mon, 5 Feb 2024 21:49:25 +0000 (21:49 +0000)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Fri, 16 Feb 2024 10:46:32 +0000 (11:46 +0100)
commit83b1a46d6e3adde75571fbe201facf591cb5084e
treeb4f6ee24c149edbb1cd837715db6f94d28ddc6b5
parentee0f8674654023320ab61373e2da83e3e0044331
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>
drivers/media/tuners/tda18271-fe.c