Skip to content

Commit 5d40a8a

Browse files
chuckleverTrond Myklebust
authored andcommitted
SUNRPC: Check a return result
Minor: Replace an empty if statement with a debugging dprintk. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Cc: Thomas Talpey <Thomas.Talpey@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
1 parent d4b37ff commit 5d40a8a

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎net/sunrpc/xprtrdma/verbs.c‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ rpcrdma_ep_create(struct rpcrdma_ep *ep, struct rpcrdma_ia *ia,
522522
struct rpcrdma_create_data_internal *cdata)
523523
{
524524
struct ib_device_attr devattr;
525-
int rc;
525+
int rc, err;
526526

527527
rc = ib_query_device(ia->ri_id->device, &devattr);
528528
if (rc) {
@@ -648,8 +648,10 @@ rpcrdma_ep_create(struct rpcrdma_ep *ep, struct rpcrdma_ia *ia,
648648
return 0;
649649

650650
out2:
651-
if (ib_destroy_cq(ep->rep_cq))
652-
;
651+
err = ib_destroy_cq(ep->rep_cq);
652+
if (err)
653+
dprintk("RPC: %s: ib_destroy_cq returned %i\n",
654+
__func__, err);
653655
out1:
654656
return rc;
655657
}

0 commit comments

Comments
 (0)