]> 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)
committerSasha Levin <sasha.levin@oracle.com>
Wed, 13 Apr 2016 21:14:19 +0000 (17:14 -0400)
commitdd25a5d97400cb10a85a09eac07d541975e39522
tree48e073bf92921da87c5b7201c8f3bd247080f004
parent2f53ace471375e60b3ba1b5341f673e8b36684aa
iw_cxgb3: Fix incorrectly returning error on success

[ Upstream commit 67f1aee6f45059fd6b0f5b0ecb2c97ad0451f6b3 ]

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: Sasha Levin <sasha.levin@oracle.com>
drivers/infiniband/hw/cxgb3/iwch_cm.c