* [PATCH] usbvision-video: wrong variable tested in usbvision_register_video()
@ 2010-02-07 11:42 Roel Kluin
0 siblings, 0 replies; only message in thread
From: Roel Kluin @ 2010-02-07 11:42 UTC (permalink / raw)
To: Mauro Carvalho Chehab, linux-media, Andrew Morton, LKML
usbvision->vdev was already tested, we should test usbvision->vbi here.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
diff --git a/drivers/media/video/usbvision/usbvision-video.c b/drivers/media/video/usbvision/usbvision-video.c
index 1054546..7c17ec6 100644
--- a/drivers/media/video/usbvision/usbvision-video.c
+++ b/drivers/media/video/usbvision/usbvision-video.c
@@ -1487,7 +1487,7 @@ static int __devinit usbvision_register_video(struct usb_usbvision *usbvision)
usbvision->vbi = usbvision_vdev_init(usbvision,
&usbvision_vbi_template,
"USBVision VBI");
- if (usbvision->vdev == NULL) {
+ if (usbvision->vbi == NULL) {
goto err_exit;
}
if (video_register_device(usbvision->vbi,
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-02-07 11:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-07 11:42 [PATCH] usbvision-video: wrong variable tested in usbvision_register_video() Roel Kluin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox