some cleanup, incl. free'ing of allocated stuff (without malloc fail)
[ppcskel.git] / usb / core / usb.c
index 9e973c3de2ca27cd7a5e4ae2374e07dc6a9aeb69..0f85c6370b2217df37241cec6a0461e8416ad03c 100644 (file)
@@ -143,12 +143,11 @@ u8 usb_control_msg(usb_device *dev, u8 requesttype, u8 request, u16 value, u16 i
        irp->type = USB_CTRL;
 
        buf[0]=(char)requesttype;
-       buf[1]=(char)request;            
-       buf[2]=(char)(value >> 8);
-       buf[3]=(char)(value);           
-       buf[4]=(char)(index >> 8);
-       buf[5]=(char)(index);   
-       // lenght buf are the only where the order is inverted
+       buf[1]=(char)request;
+       buf[2]=(char)(value);
+       buf[3]=(char)(value >> 8);
+       buf[4]=(char)(index);
+       buf[5]=(char)(index >> 8);
        buf[6]=(char)(length);
        buf[7]=(char)(length >> 8);