if (NULL == btv->vbi_dev) 
if (NULL == btv->vbi_dev) 
static int __devinit bttv_register_video(struct bttv *btv){	if (no_overlay <= 0) {		bttv_video_template.type |= VID_TYPE_OVERLAY;	} else {		printk("bttv: Overlay support disabled.\n");	}	/* video */	btv->video_dev = vdev_init(btv, &bttv_video_template, "video");        if (NULL == btv->video_dev)		goto err;	if (video_register_device(btv->video_dev,VFL_TYPE_GRABBER,video_nr)<0)		goto err;	printk(KERN_INFO "bttv%d: registered device video%d\n",	       btv->c.nr,btv->video_dev->minor & 0x1f);	video_device_create_file(btv->video_dev, &class_device_attr_card);	/* vbi */	btv->vbi_dev = vdev_init(btv, &bttv_vbi_template, "vbi");        if (NULL == btv->vbi_dev)		goto err;        if (video_register_device(btv->vbi_dev,VFL_TYPE_VBI,vbi_nr)<0)		goto err;	printk(KERN_INFO "bttv%d: registered device vbi%d\n",	       btv->c.nr,btv->vbi_dev->minor & 0x1f);        if (!btv->has_radio)		return 0;	/* radio */	btv->radio_dev = vdev_init(btv, &radio_template, "radio");        if (NULL == btv->radio_dev)		goto err;	if (video_register_device(btv->radio_dev, VFL_TYPE_RADIO,radio_nr)<0)		goto err;	printk(KERN_INFO "bttv%d: registered device radio%d\n",	       btv->c.nr,btv->radio_dev->minor & 0x1f);	/* all done */	return 0; err:	bttv_unregister_video(btv);	return -1;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/4ac97914c6c35f6bf132071c718e034d0846b9f5/bttv-driver.c/buggy/drivers/media/video/bttv-driver.c