diff mbox

drivers/media/video: Correct NULL test

Message ID Pine.LNX.4.64.0912281509340.6928@ask.diku.dk (mailing list archive)
State Accepted
Headers show

Commit Message

Julia Lawall Dec. 28, 2009, 2:09 p.m. UTC
None
diff mbox

Patch

diff -u -p a/drivers/media/video/usbvision/usbvision-video.c b/drivers/media/video/usbvision/usbvision-video.c
--- 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_
 		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,