forked from luck/tmp_suning_uos_patched
media: stv0900_core: remove redundant assignment to variable val
The variable val is being initializeed with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
1bcecace15
commit
4e054aab8a
|
@ -193,7 +193,7 @@ void stv0900_write_bits(struct stv0900_internal *intp, u32 label, u8 val)
|
|||
|
||||
u8 stv0900_get_bits(struct stv0900_internal *intp, u32 label)
|
||||
{
|
||||
u8 val = 0xff;
|
||||
u8 val;
|
||||
u8 mask, pos;
|
||||
|
||||
extract_mask_pos(label, &mask, &pos);
|
||||
|
|
Loading…
Reference in New Issue
Block a user