summaryrefslogtreecommitdiffstats
path: root/src/net/infiniband/ib_pathrec.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/infiniband/ib_pathrec.c')
-rw-r--r--src/net/infiniband/ib_pathrec.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/net/infiniband/ib_pathrec.c b/src/net/infiniband/ib_pathrec.c
index f686b2dd..c3139dd4 100644
--- a/src/net/infiniband/ib_pathrec.c
+++ b/src/net/infiniband/ib_pathrec.c
@@ -170,10 +170,9 @@ int ib_resolve_path ( struct ib_device *ibdev,
*
* @v gma General management agent
* @v mad MAD
- * @ret rc Return status code
*/
-static int ib_handle_path_record ( struct ib_gma *gma,
- union ib_mad *mad ) {
+static void ib_handle_path_record ( struct ib_gma *gma,
+ union ib_mad *mad ) {
struct ib_device *ibdev = gma->ibdev;
struct ib_path_record *path_record = &mad->sa.sa_data.path_record;
struct ib_gid *dgid = &path_record->dgid;
@@ -186,7 +185,7 @@ static int ib_handle_path_record ( struct ib_gma *gma,
if ( mad->hdr.status != htons ( IB_MGMT_STATUS_OK ) ) {
DBGC ( gma, "GMA %p path record lookup failed with status "
"%04x\n", gma, ntohs ( mad->hdr.status ) );
- return -EINVAL;
+ return;
}
/* Extract values from MAD */
@@ -209,8 +208,6 @@ static int ib_handle_path_record ( struct ib_gma *gma,
cached->rate = rate;
cached->sl = sl;
}
-
- return 0;
}
/** Path record response handler */