]> git.hungrycats.org Git - linux/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)
committerWilly Tarreau <w@1wt.eu>
Sat, 12 Mar 2016 13:25:48 +0000 (14:25 +0100)
commitabe1c706f559f85623c9d477222f7e8f438202d0
tree04aa275905a02ae58f685ae6b93ccdc8e1a0dba0
parent2c044830bb4f302e47f456a9a915238bd7f1403e
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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/infiniband/hw/cxgb3/iwch_cm.c