This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/media_tree.git tree:

Subject: [media] ddbridge: remove unneeded check before dvb_unregister_device()
Author:  Markus Elfring <[email protected]>
Date:    Sun Nov 30 18:50:20 2014 -0300

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 <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 drivers/media/pci/ddbridge/ddbridge-core.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

---

http://git.linuxtv.org/media_tree.git?a=commitdiff;h=ddc0085e915f34fe56407dfc3ef2362f572d3a09

diff --git a/drivers/media/pci/ddbridge/ddbridge-core.c 
b/drivers/media/pci/ddbridge/ddbridge-core.c
index c82e855..9e3492e 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);

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to