Commit:     7b9fbc3e30f785412a26819aa4daf0b6c27f6c53
Parent:     f5e4feead773cb449212eacfa254a238a953d4d5
Author:     Jean Delvare <[EMAIL PROTECTED]>
AuthorDate: Mon Sep 3 11:51:51 2007 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Fri Sep 14 13:13:41 2007 -0300

    V4L/DVB (6147): Pwc: Fix a broken debug message
    Commit 85237f202d46d55c1bffe0c5b1aa3ddc0f1dce4d introduced the
    following warning (with CONFIG_USB_PWC_DEBUG=y):
    drivers/media/video/pwc/pwc-if.c: In function "pwc_video_close":
    drivers/media/video/pwc/pwc-if.c:1211: warning: "i" may be used 
uninitialized in this function
    This is true, and can cause a broken debug message to be logged.
    Here's a fix.
    Signed-off-by: Jean Delvare <[EMAIL PROTECTED]>
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
 drivers/media/video/pwc/pwc-if.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/media/video/pwc/pwc-if.c b/drivers/media/video/pwc/pwc-if.c
index 3d81966..931b274 100644
--- a/drivers/media/video/pwc/pwc-if.c
+++ b/drivers/media/video/pwc/pwc-if.c
@@ -1243,7 +1243,7 @@ static int pwc_video_close(struct inode *inode, struct 
file *file)
                                PWC_ERROR("Failed to power down camera (%d)\n", 
-               PWC_DEBUG_OPEN("<< video_close() vopen=%d\n", i);
+               PWC_DEBUG_OPEN("<< video_close() vopen=%d\n", pdev->vopen);
        } else {
                /* Free memory (don't set pdev to 0 just yet) */
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to