Commit bac26a63 authored by Victor Toso's avatar Victor Toso Committed by Mauro Carvalho Chehab

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: default avatarVictor Toso <me@victortoso.com>
Signed-off-by: default avatarSean Young <sean@mess.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent 09a446d2
...@@ -957,9 +957,7 @@ int dvb_usbv2_probe(struct usb_interface *intf, ...@@ -957,9 +957,7 @@ int dvb_usbv2_probe(struct usb_interface *intf,
if (d->props->identify_state) { if (d->props->identify_state) {
const char *name = NULL; const char *name = NULL;
ret = d->props->identify_state(d, &name); ret = d->props->identify_state(d, &name);
if (ret == 0) { if (ret == COLD) {
;
} else if (ret == COLD) {
dev_info(&d->udev->dev, dev_info(&d->udev->dev,
"%s: found a '%s' in cold state\n", "%s: found a '%s' in cold state\n",
KBUILD_MODNAME, d->name); KBUILD_MODNAME, d->name);
...@@ -984,7 +982,7 @@ int dvb_usbv2_probe(struct usb_interface *intf, ...@@ -984,7 +982,7 @@ int dvb_usbv2_probe(struct usb_interface *intf,
} else { } else {
goto err_free_all; goto err_free_all;
} }
} else { } else if (ret != WARM) {
goto err_free_all; goto err_free_all;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment