Skip to content

Commit

Permalink
media: mantis_dvb: remove redundant initialization to variable result
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Sean Young <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
Colin Ian King authored and mchehab committed May 12, 2020
1 parent f933d16 commit 77d30ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/pci/mantis/mantis_dvb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit 77d30ea

Please sign in to comment.