]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Return USB_ERR_INTERNAL instead of grub_errno when appropriate
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sat, 21 Aug 2010 11:54:10 +0000 (13:54 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sat, 21 Aug 2010 11:54:10 +0000 (13:54 +0200)
bus/usb/usbtrans.c

index db2ec097a896db44f5edd6cdcfa907b81b07162f..4a2e112bf2987d81ad31a5369b61f98c6f848467 100644 (file)
@@ -209,7 +209,7 @@ grub_usb_bulk_readwrite (grub_usb_device_t dev,
   if (! transfer)
     {
       grub_dma_free (data_chunk);
-      return grub_errno;
+      return GRUB_USB_ERR_INTERNAL;
     }
 
   datablocks = ((size + max - 1) / max);
@@ -229,7 +229,7 @@ grub_usb_bulk_readwrite (grub_usb_device_t dev,
     {
       grub_free (transfer);
       grub_dma_free (data_chunk);
-      return grub_errno;
+      return GRUB_USB_ERR_INTERNAL;
     }
 
   /* Set up all transfers.  */