]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iw_cxgb3: Fix incorrectly returning error on success
authorHariprasad S <hariprasad@chelsio.com>
Fri, 11 Dec 2015 08:29:17 +0000 (13:59 +0530)
committerJiri Slaby <jslaby@suse.cz>
Thu, 3 Mar 2016 11:45:53 +0000 (12:45 +0100)
commitaec2e8966c788ccb1d7beed3401adfb470676877
treef42d8c88c6e74637a6bdcee7ca85ef6f6d18e7bd
parent11d0b15c0958797c7d3ead74b22807752286039f
iw_cxgb3: Fix incorrectly returning error on success

commit 67f1aee6f45059fd6b0f5b0ecb2c97ad0451f6b3 upstream.

The cxgb3_*_send() functions return NET_XMIT_ values, which are
positive integers values. So don't treat positive return values
as an error.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
[a pox on developers and maintainers who do not cc: stable for bug fixes like this - gregkh]
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/infiniband/hw/cxgb3/iwch_cm.c