aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2014-11-30 16:50:20 -0500
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2014-12-04 12:28:52 -0500
commitddc0085e915f34fe56407dfc3ef2362f572d3a09 (patch)
tree78508c9a09769bdedf335428cc2f8c04d080f04d
parente358c8a60f62fa89a13e35686f79eaeda0ca2127 (diff)
[media] ddbridge: remove unneeded check before dvb_unregister_device()
The dvb_unregister_device() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
-rw-r--r--drivers/media/pci/ddbridge/ddbridge-core.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/pci/ddbridge/ddbridge-core.c b/drivers/media/pci/ddbridge/ddbridge-core.c
index c82e855a0814..9e3492e20766 100644
--- a/drivers/media/pci/ddbridge/ddbridge-core.c
+++ b/drivers/media/pci/ddbridge/ddbridge-core.c
@@ -1118,8 +1118,7 @@ static void ddb_ports_detach(struct ddb *dev)
1118 dvb_input_detach(port->input[1]); 1118 dvb_input_detach(port->input[1]);
1119 break; 1119 break;
1120 case DDB_PORT_CI: 1120 case DDB_PORT_CI:
1121 if (port->output->dev) 1121 dvb_unregister_device(port->output->dev);
1122 dvb_unregister_device(port->output->dev);
1123 if (port->en) { 1122 if (port->en) {
1124 ddb_input_stop(port->input[0]); 1123 ddb_input_stop(port->input[0]);
1125 ddb_output_stop(port->output); 1124 ddb_output_stop(port->output);