ChangeSet 1.2181.4.80, 2005/03/28 12:33:49-08:00, [EMAIL PROTECTED]

        [PATCH] drivers/usb/media/usbvideo.c: fix a check after use
        
        This patch fixes a check after use found by the Coverity checker.
        
        Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]>
        Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>



 usbvideo.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


diff -Nru a/drivers/usb/media/usbvideo.c b/drivers/usb/media/usbvideo.c
--- a/drivers/usb/media/usbvideo.c      2005-03-30 15:21:07 -08:00
+++ b/drivers/usb/media/usbvideo.c      2005-03-30 15:21:07 -08:00
@@ -1814,11 +1814,11 @@
 {
        int i, j;
 
-       if (uvd->debug > 1)
-               info("%s($%p)", __FUNCTION__, uvd);
-
        if ((uvd == NULL) || (!uvd->streaming) || (uvd->dev == NULL))
                return;
+
+       if (uvd->debug > 1)
+               info("%s($%p)", __FUNCTION__, uvd);
 
        /* Unschedule all of the iso td's */
        for (i=0; i < USBVIDEO_NUMSBUF; i++) {
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to