[U-Boot] [PATCH] net: rtl8169: Fix return value for rtl_send_common
Joe Hershberger
joe.hershberger at gmail.com
Wed Jul 6 17:07:17 CEST 2016
On Fri, Jul 1, 2016 at 3:22 PM, Oleksandr Tymoshenko <gonzo at bluezbox.com> wrote:
> Return value of rtl_send_common propogates unmodified all the way
> up to eth_send and further to API consumer if CONFIG_API is enabled.
> Previously rtl_send_common returned number of bytes sent on success
> which was erroneouly detected as error condition by API consumers
> that checked for operation success by comparing return value with 0.
>
> Switch rtl_send_common to use common convention: return 0 on success
> and negative value for failure.
>
> Cc: Stephen Warren <swarren at nvidia.com>
> Cc: Joe Hershberger <joe.hershberger at ni.com>
> Signed-off-by: Oleksandr Tymoshenko <gonzo at bluezbox.com>
Acked-by: Joe Hershberger <joe.hershberger at ni.com>
More information about the U-Boot
mailing list