From: Oleksandr Tymoshenko Date: Mon, 4 Jul 2016 10:10:33 -0700 Subject: [U-Boot] [PATCH] net: rtl8169: Fix return value for rtl_send_common In-Reply-To: References: <1467404520-27951-1-git-send-email-gonzo@bluezbox.com> Message-ID: <69F08C56-A152-4F94-A5DC-2B72BE589181@bluezbox.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > On Jul 4, 2016, at 8:40 AM, Simon Glass wrote: > > On 1 July 2016 at 14:22, Oleksandr Tymoshenko 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 >> Cc: Joe Hershberger >> Signed-off-by: Oleksandr Tymoshenko >> --- >> drivers/net/rtl8169.c | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) > > Reviewed-by: Simon Glass > > But I'd like to see a function comment on rtl_send_common(), and on > the driver-model send() method in struct eth_ops, for that matter. Hi Simon, Should I submit new version or is it OK to submit new patch with comments added to these two functions? Thank you