summaryrefslogtreecommitdiff
path: root/include/pca9564.h
diff options
context:
space:
mode:
authorOleksandr Tymoshenko <gonzo@bluezbox.com>2016-07-01 20:22:00 (GMT)
committerJoe Hershberger <joe.hershberger@ni.com>2016-07-06 15:45:11 (GMT)
commit4c64c4db3b87818318ed8b4cd6907c508aaf04ce (patch)
tree7269bd2af9ebd622030a5c22d5d91b41b7daf789 /include/pca9564.h
parente4ead4a21db266c84051279ed4ceeab72981df8c (diff)
downloadu-boot-4c64c4db3b87818318ed8b4cd6907c508aaf04ce.tar.xz
net: rtl8169: Fix return value for rtl_send_common
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@nvidia.com> Cc: Joe Hershberger <joe.hershberger@ni.com> Signed-off-by: Oleksandr Tymoshenko <gonzo@bluezbox.com> Reviewed-by: Simon Glass <sjg@chromium.org> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'include/pca9564.h')
0 files changed, 0 insertions, 0 deletions