if(v->tuner) return -EINVAL; 
if(v->tuner) return -EINVAL; 
static int radio_do_ioctl(struct inode *inode, struct file *file,			  unsigned int cmd, void *arg){	struct bttv    *btv = file->private_data;	switch (cmd) {	case VIDIOCGCAP:	{                struct video_capability *cap = arg;		memset(cap,0,sizeof(*cap));                strcpy(cap->name,btv->radio_dev->name);                cap->type = VID_TYPE_TUNER;		cap->channels = 1;		cap->audios = 1;                return 0;	}        case VIDIOCGTUNER:        {                struct video_tuner *v = arg;                if(v->tuner)                        return -EINVAL;		memset(v,0,sizeof(*v));                strcpy(v->name, "Radio");                bttv_call_i2c_clients(btv,cmd,v);                return 0;        }        case VIDIOCSTUNER:		/* nothing to do */		return 0;	case BTTV_VERSION:        case VIDIOCGFREQ:        case VIDIOCSFREQ:	case VIDIOCGAUDIO:	case VIDIOCSAUDIO:		return bttv_common_ioctls(btv,cmd,arg);	default:		return -ENOIOCTLCMD;	}	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/4ac97914c6c35f6bf132071c718e034d0846b9f5/bttv-driver.c/buggy/drivers/media/video/bttv-driver.c