diff options
author | Markus Elfring | 2014-11-30 18:50:20 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab | 2014-12-04 15:28:52 -0200 |
commit | ddc0085e915f34fe56407dfc3ef2362f572d3a09 (patch) | |
tree | 78508c9a09769bdedf335428cc2f8c04d080f04d /drivers/media | |
parent | e358c8a60f62fa89a13e35686f79eaeda0ca2127 (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>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/pci/ddbridge/ddbridge-core.c | 3 |
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) dvb_input_detach(port->input[1]); break; case DDB_PORT_CI: - if (port->output->dev) - dvb_unregister_device(port->output->dev); + dvb_unregister_device(port->output->dev); if (port->en) { ddb_input_stop(port->input[0]); ddb_output_stop(port->output); |