Re: [U-Boot] [PATCH] usb: Fix error handling in musb_hcd.c

2013-10-03 Thread Marek Vasut
Dear Andrew Murray, > The wait_until_[rx|tx]ep_ready functions return a u8 to indicate success > containing the value 0, 1 or -1. This patch changes the return type to an > int to accommodate the negative return values. > > These functions are used in the file using calls such as if (!wait_until.

[U-Boot] [PATCH] usb: Fix error handling in musb_hcd.c

2013-10-01 Thread Andrew Murray
The wait_until_[rx|tx]ep_ready functions return a u8 to indicate success containing the value 0, 1 or -1. This patch changes the return type to an int to accommodate the negative return values. These functions are used in the file using calls such as if (!wait_until... Where a -1 is returned it is