V4L/DVB (7732): vivi: fix a warning

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git-commits-head@...>
Date: Saturday, April 26, 2008 - 2:03 pm

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=63b79c...
Commit:     63b79cfa05b35973713caa91e290311bd5ebbe1d
Parent:     b1721d0da266b4af8cb4419473b4ca36206ab200
Author:     Mauro Carvalho Chehab <mchehab@infradead.org>
AuthorDate: Sat Apr 26 08:25:18 2008 -0300
Committer:  Mauro Carvalho Chehab <mchehab@infradead.org>
CommitDate: Sat Apr 26 09:10:46 2008 -0300

    V4L/DVB (7732): vivi: fix a warning
    
    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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/media/video/vivi.c b/drivers/media/video/vivi.c
index b1e9592..845be18 100644
--- a/drivers/media/video/vivi.c
+++ b/drivers/media/video/vivi.c
@@ -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;
 
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
V4L/DVB (7732): vivi: fix a warning, Linux Kernel Mailing List..., (Sat Apr 26, 2:03 pm)