[DVB patch 3/5] dvb-usb: fix init error checking

Johannes Stezenbach
2005-05-22T23:54:51Z

[-- Attachment #1: dvb-usb-dibcom-init-fix.patch --]
[-- Type: text/plain, Size: 1042 bytes --]

Fix error checking during initialization.
Thanks to Gerolf Wendland for discovering.

Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Johannes Stezenbach <js@linuxtv.org>
---
drivers/media/dvb/dvb-usb/dibusb-mb.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6.12-rc4-git3/drivers/media/dvb/dvb-usb/dibusb-mb.c
===================================================================
--- linux-2.6.12-rc4-git3.orig/drivers/media/dvb/dvb-usb/dibusb-mb.c 2005-05-23 00:56:12.000000000 +0200
+++ linux-2.6.12-rc4-git3/drivers/media/dvb/dvb-usb/dibusb-mb.c 2005-05-23 00:56:57.000000000 +0200
@@ -81,7 +81,7 @@ static int dibusb_probe(struct usb_inter
const struct usb_device_id *id)
{
if (dvb_usb_device_init(intf,&dibusb1_1_properties,THIS_MODULE) == 0 ||
- dvb_usb_device_init(intf,&dibusb1_1_an2235_properties,THIS_MODULE) ||
+ dvb_usb_device_init(intf,&dibusb1_1_an2235_properties,THIS_MODULE) == 0 ||
dvb_usb_device_init(intf,&dibusb2_0b_properties,THIS_MODULE) == 0)
return 0;

--