[media] dvb_usb_v2: do not try to remove non-existent adapter
authorAntti Palosaari <crope@iki.fi>
Wed, 27 Jun 2012 01:49:19 +0000 (22:49 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 4 Aug 2012 10:56:39 +0000 (07:56 -0300)
commitb62fd172ff1da93a0c720639e1f64f2a4282f943
tree7dadd876340ba9855248ed8dec308d6629d7ca88
parentd10d1b9ac97b96dd9183944d30b1664bdbb5fbf6
[media] dvb_usb_v2: do not try to remove non-existent adapter

Check that adapter exists before trying to remove it.

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