mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-14 06:24:53 +08:00
media: dvb: Use WARM definition from identify_state()
Device should be either COLD or WARM. This change only make usage of the existing definition. Signed-off-by: Victor Toso <me@victortoso.com> Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
parent
09a446d278
commit
bac26a63f9
@ -957,9 +957,7 @@ int dvb_usbv2_probe(struct usb_interface *intf,
|
||||
if (d->props->identify_state) {
|
||||
const char *name = NULL;
|
||||
ret = d->props->identify_state(d, &name);
|
||||
if (ret == 0) {
|
||||
;
|
||||
} else if (ret == COLD) {
|
||||
if (ret == COLD) {
|
||||
dev_info(&d->udev->dev,
|
||||
"%s: found a '%s' in cold state\n",
|
||||
KBUILD_MODNAME, d->name);
|
||||
@ -984,7 +982,7 @@ int dvb_usbv2_probe(struct usb_interface *intf,
|
||||
} else {
|
||||
goto err_free_all;
|
||||
}
|
||||
} else {
|
||||
} else if (ret != WARM) {
|
||||
goto err_free_all;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user