mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 01:10:04 +00:00
[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>
This commit is contained in:
parent
e358c8a60f
commit
ddc0085e91
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue