summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-04-25 13:22:05 +0200
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-05-12 17:31:30 +0200
commit4e054aab8a1f1b43f4c34846b713ad6d8b43c729 (patch)
treeb43742953ad7a2e86d13a5d6a5c4775d16fa1408 /drivers/media/dvb-frontends
parent1bcecace15d2ebdf8ad039afe8cbd5439894f92f (diff)
downloadlinux-4e054aab8a1f1b43f4c34846b713ad6d8b43c729.tar.bz2
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>
Diffstat (limited to 'drivers/media/dvb-frontends')
-rw-r--r--drivers/media/dvb-frontends/stv0900_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb-frontends/stv0900_core.c b/drivers/media/dvb-frontends/stv0900_core.c
index 7d93a1617e86..212312d20ff6 100644
--- a/drivers/media/dvb-frontends/stv0900_core.c
+++ b/drivers/media/dvb-frontends/stv0900_core.c
@@ -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);