summaryrefslogtreecommitdiff
path: root/drivers/media/pci/mantis/mantis_dvb.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-05-07 23:43:31 +0200
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-05-12 17:32:51 +0200
commit77d30eab04485a5996feb48d4e07cb72fbaccadb (patch)
tree1b225221fe5fa3e25cc1d7cac19bbf7c1d9f95a1 /drivers/media/pci/mantis/mantis_dvb.c
parentf933d160b1e71dd8ab3d4e2586b9ff0f584d985c (diff)
media: mantis_dvb: remove redundant initialization to variable result
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>
Diffstat (limited to 'drivers/media/pci/mantis/mantis_dvb.c')
-rw-r--r--drivers/media/pci/mantis/mantis_dvb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/mantis/mantis_dvb.c b/drivers/media/pci/mantis/mantis_dvb.c
index e78ca1f26e68..2da94be5b373 100644
--- a/drivers/media/pci/mantis/mantis_dvb.c
+++ b/drivers/media/pci/mantis/mantis_dvb.c
@@ -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");