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]>


 drivers/usb/media/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 13:31:39 -08:00
+++ b/drivers/usb/media/usbvideo.c      2005-03-30 13:31:39 -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++) {



-------------------------------------------------------
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions.
Download our HomeAdmin security software for free today!
http://www.demarc.com/info/Sentarus/hamr30
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to