diff options
author | Colin Ian King <colin.king@canonical.com> | 2020-04-10 14:39:13 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-11-27 13:12:27 +0300 |
commit | 6814e218b9c0fc3a1a6aaf8ee186f7e91968173c (patch) | |
tree | 458596be34b59ef1bd76a06b2fd40de2abab6552 /drivers/media/pci/mantis/hopper_vp3028.c | |
parent | 9b1b0cb0636166187478ef68d5b95f5caea062ec (diff) | |
download | linux-6814e218b9c0fc3a1a6aaf8ee186f7e91968173c.tar.xz |
media: mantis: remove redundant assignment to variable err
The variable err 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: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/pci/mantis/hopper_vp3028.c')
-rw-r--r-- | drivers/media/pci/mantis/hopper_vp3028.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/mantis/hopper_vp3028.c b/drivers/media/pci/mantis/hopper_vp3028.c index 37bd386f3ed8..ce1e8737b14b 100644 --- a/drivers/media/pci/mantis/hopper_vp3028.c +++ b/drivers/media/pci/mantis/hopper_vp3028.c @@ -33,7 +33,7 @@ static int vp3028_frontend_init(struct mantis_pci *mantis, struct dvb_frontend * { struct i2c_adapter *adapter = &mantis->adapter; struct mantis_hwconfig *config = mantis->hwconfig; - int err = 0; + int err; mantis_gpio_set_bits(mantis, config->reset, 0); msleep(100); |