media: cx23885: remove redundant assignment to err
authorColin Ian King <colin.king@canonical.com>
Thu, 30 May 2019 18:59:24 +0000 (14:59 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 3 Jun 2019 14:44:58 +0000 (10:44 -0400)
The variable err is assigned with a value that is never read and
it is re-assigned a new value later on.  The assignment is redundant
and can be removed.

Addresses-Coverity: ("Unused value")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/pci/cx23885/cx23885-dvb.c

index e2e63f05645e1c777240efbf719aad97ebf25997..13595fcb6a40ee89ab8a53a80d2be4222d3734d8 100644 (file)
@@ -2657,8 +2657,6 @@ int cx23885_dvb_register(struct cx23885_tsport *port)
                        dev->pci_bus,
                        dev->pci_slot);
 
-               err = -ENODEV;
-
                /* dvb stuff */
                /* We have to init the queue for each frontend on a port. */
                pr_info("%s: cx23885 based dvb card\n", dev->name);