Initialize flags variable to 0
authorHervé Poussineau <hpoussin@reactos.org>
Thu, 15 Sep 2005 12:57:11 +0000 (12:57 +0000)
committerHervé Poussineau <hpoussin@reactos.org>
Thu, 15 Sep 2005 12:57:11 +0000 (12:57 +0000)
svn path=/trunk/; revision=17858

reactos/drivers/usb/miniport/usbohci/ohci-hcd.c
reactos/drivers/usb/miniport/usbohci/ohci-q.c

index 840c275..7645ff0 100644 (file)
@@ -165,7 +165,7 @@ static int ohci_urb_enqueue (
        urb_priv_t      *urb_priv;
        unsigned int    pipe = urb->pipe;
        int             i, size = 0;
        urb_priv_t      *urb_priv;
        unsigned int    pipe = urb->pipe;
        int             i, size = 0;
-       unsigned long   flags;
+       unsigned long   flags = 0;
        int             retval = 0;
        
 #ifdef OHCI_VERBOSE_DEBUG
        int             retval = 0;
        
 #ifdef OHCI_VERBOSE_DEBUG
index eae584a..2f28ce5 100644 (file)
@@ -344,7 +344,7 @@ static struct ed *ed_get (
        struct hcd_dev          *dev = (struct hcd_dev *) udev->hcpriv;
        struct ed               *ed; 
        unsigned                ep;
        struct hcd_dev          *dev = (struct hcd_dev *) udev->hcpriv;
        struct ed               *ed; 
        unsigned                ep;
-       unsigned long           flags;
+       unsigned long           flags = 0;
 
        ep = usb_pipeendpoint (pipe) << 1;
        if (type != PIPE_CONTROL && is_out)
 
        ep = usb_pipeendpoint (pipe) << 1;
        if (type != PIPE_CONTROL && is_out)