OSDN Git Service

iw_cxgb3: Fix incorrectly returning error on success
authorHariprasad S <hariprasad@chelsio.com>
Fri, 11 Dec 2015 08:29:17 +0000 (13:59 +0530)
committerDoug Ledford <dledford@redhat.com>
Thu, 24 Dec 2015 05:17:30 +0000 (00:17 -0500)
commit67f1aee6f45059fd6b0f5b0ecb2c97ad0451f6b3
treec3efb09180320089f804b8c3666a55818719a6a5
parentc5dfb000b90442e52f735bef4c2fc3f67783eaeb
iw_cxgb3: Fix incorrectly returning error on success

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>
drivers/infiniband/hw/cxgb3/iwch_cm.c