media: drivers: cx24113: remove redundant variable r
Variable r is being assigned values but its value was never used, being overriden on its first usage. So, drop the initialization. Addresses-Coverity: ("Unused value") Link: https://lore.kernel.org/linux-media/20211014151235.62671-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
32f4797d03
commit
40f45ab7a7
@ -378,7 +378,7 @@ static void cx24113_set_nfr(struct cx24113_state *state, u16 n, s32 f, u8 r)
|
||||
|
||||
static int cx24113_set_frequency(struct cx24113_state *state, u32 frequency)
|
||||
{
|
||||
u8 r = 1; /* or 2 */
|
||||
u8 r;
|
||||
u16 n = 6;
|
||||
s32 f = 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user