[PATCH] dvb-usb: fix init error checking
authorJohannes Stezenbach <js@linuxtv.org>
Fri, 24 Jun 2005 05:02:38 +0000 (22:02 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 24 Jun 2005 07:05:30 +0000 (00:05 -0700)
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>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/media/dvb/dvb-usb/dibusb-mb.c

index fd103e4..a0ffbb5 100644 (file)
@@ -81,7 +81,7 @@ static int dibusb_probe(struct usb_interface *intf,
                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;