From: Colin Ian King Date: Fri, 10 Apr 2020 11:39:13 +0000 (+0200) Subject: media: mantis: remove redundant assignment to variable err X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=6814e218b9c0fc3a1a6aaf8ee186f7e91968173c;p=linux.git 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 Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/pci/mantis/hopper_vp3028.c b/drivers/media/pci/mantis/hopper_vp3028.c index 37bd386f3ed8b..ce1e8737b14b5 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);