]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/rds/rdma.c
RDS: Clean up error handling in rds_cmsg_rdma_args
[net-next-2.6.git] / net / rds / rdma.c
index d0ba2ca3b71457576c95dfe1f070003b6f663944..334acdd32ab676552e48ab23006f5b75c136f970 100644 (file)
@@ -664,13 +664,12 @@ int rds_cmsg_rdma_args(struct rds_sock *rs, struct rds_message *rm,
        }
        op->op_bytes = nr_bytes;
 
-       ret = 0;
 out:
        kfree(pages);
        if (ret)
                rds_rdma_free_op(op);
-
-       rds_stats_inc(s_send_rdma);
+       else
+               rds_stats_inc(s_send_rdma);
 
        return ret;
 }