]> git.baikalelectronics.ru Git - kernel.git/commit
RDS: Clean up error handling in rds_cmsg_rdma_args
authorAndy Grover <andy.grover@oracle.com>
Thu, 28 Oct 2010 15:40:57 +0000 (15:40 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 30 Oct 2010 23:34:17 +0000 (16:34 -0700)
commite1d1a4fc7b4d4ba15842385c5643bd50e285f29a
treead16a35e587408a396f2ab8e485428b8730fe733
parent25d92aa94e7cc1813c8b9817d76ebbce551db9aa
RDS: Clean up error handling in rds_cmsg_rdma_args

We don't need to set ret = 0 at the end -- it's initialized to 0.

Also, don't increment s_send_rdma stat if we're exiting with an
error.

Signed-off-by: Andy Grover <andy.grover@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/rdma.c