]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
media: mantis_dvb: remove redundant initialization to variable result
authorColin Ian King <colin.king@canonical.com>
Thu, 7 May 2020 21:43:31 +0000 (23:43 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 12 May 2020 15:32:51 +0000 (17:32 +0200)
The variable result 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>
drivers/media/pci/mantis/mantis_dvb.c

index e78ca1f26e684dd90d940e623ea27c1151883776..2da94be5b37378df6f72b5f7689b24e371958830 100644 (file)
@@ -135,7 +135,7 @@ static int mantis_dvb_stop_feed(struct dvb_demux_feed *dvbdmxfeed)
 int mantis_dvb_init(struct mantis_pci *mantis)
 {
        struct mantis_hwconfig *config = mantis->hwconfig;
-       int result = -1;
+       int result;
 
        dprintk(MANTIS_DEBUG, 1, "dvb_register_adapter");