]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB (7732): vivi: fix a warning
authorMauro Carvalho Chehab <mchehab@infradead.org>
Sat, 26 Apr 2008 11:25:18 +0000 (08:25 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Sat, 26 Apr 2008 12:10:46 +0000 (09:10 -0300)
some gcc versions complain that fh is used without being defined.

The error report is bogus. However, fixing it is trivial. Better to make
gcc happy.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/vivi.c

index b1e9592acb907bb06ca59d82e8fa6cafcf5384fc..845be1864f685a01fad3a225bc9826ab09d61985 100644 (file)
@@ -888,7 +888,7 @@ static int vivi_open(struct inode *inode, struct file *file)
 {
        int minor = iminor(inode);
        struct vivi_dev *dev;
-       struct vivi_fh *fh;
+       struct vivi_fh *fh = NULL;
        int i;
        int retval = 0;