Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: dvb: remove redundant assignment to variable bw

The variable bw is being initialized 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>

authored by

Colin Ian King and committed by
Mauro Carvalho Chehab
1bcecace 1195a28d

+1 -1
+1 -1
drivers/media/dvb-frontends/cxd2880/cxd2880_top.c
··· 685 685 int ret; 686 686 struct cxd2880_priv *priv; 687 687 struct cxd2880_dvbt_tpsinfo info; 688 - enum cxd2880_dtv_bandwidth bw = CXD2880_DTV_BW_1_7_MHZ; 688 + enum cxd2880_dtv_bandwidth bw; 689 689 u32 pre_ber_rate = 0; 690 690 u32 post_ber_rate = 0; 691 691 u32 ucblock_rate = 0;