[media] dvb_usb_v2: try to remove all adapters on exit
authorAntti Palosaari <crope@iki.fi>
Fri, 15 Jun 2012 03:29:36 +0000 (00:29 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 4 Aug 2012 10:56:33 +0000 (07:56 -0300)
commit6e3a5daa6ee7a0eae3b2161ed4783fee547654c2
tree202e8fdee35a959de630d5aa002d2ff0185e5b7c
parentffe4ac92ee5a4a0a236b9583c3173902e158e14b
[media] dvb_usb_v2: try to remove all adapters on exit

It did not removed adapter on error case as .num_adapters_initialized
was set after success adapter initialization. It should be safe to
try remove all possible adapters in any-case.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/dvb_usb_init.c