Use dev->descdev.maxsize0 even if dev->initialized isn't set

This commit is contained in:
Aleš Nesrsta 2010-06-02 02:04:45 +02:00 committed by Vladimir 'phcoder' Serbinenko
parent 7d4873c26a
commit 390b0676c4

View file

@ -76,7 +76,7 @@ grub_usb_control_msg (grub_usb_device_t dev,
setupdata_addr = grub_dma_get_phys (setupdata_chunk);
/* Determine the maximum packet size. */
if (dev->initialized && dev->descdev.maxsize0)
if (dev->descdev.maxsize0)
max = dev->descdev.maxsize0;
else
max = 64;