mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 08:19:28 +00:00
[media] DVB: Delete an unnecessary check before the function call "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
e68c2fe64c
commit
07d0e554b5
1 changed files with 1 additions and 2 deletions
|
@ -1728,8 +1728,7 @@ int dvb_ca_en50221_init(struct dvb_adapter *dvb_adapter,
|
|||
|
||||
error:
|
||||
if (ca != NULL) {
|
||||
if (ca->dvbdev != NULL)
|
||||
dvb_unregister_device(ca->dvbdev);
|
||||
dvb_unregister_device(ca->dvbdev);
|
||||
kfree(ca->slot_info);
|
||||
kfree(ca);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue