summaryrefslogtreecommitdiffstats
path: root/net/rds/tcp.c
diff options
context:
space:
mode:
authorZhu Yanjun <yanjun.zhu@oracle.com>2017-03-03 00:44:26 -0500
committerDavid S. Miller <davem@davemloft.net>2017-03-03 09:51:22 -0800
commita8d63a53b3eac8626f62336dcc327c18f1bbca78 (patch)
tree774e26f9fd85f6bc59afad87104dd99f8633dee3 /net/rds/tcp.c
parent37411cad633f5e41f8a13007654909d21b19363a (diff)
downloadlinux-stable-a8d63a53b3eac8626f62336dcc327c18f1bbca78.tar.gz
linux-stable-a8d63a53b3eac8626f62336dcc327c18f1bbca78.tar.bz2
linux-stable-a8d63a53b3eac8626f62336dcc327c18f1bbca78.zip
rds: remove unnecessary returned value check
The function rds_trans_register always returns 0. As such, it is not necessary to check the returned value. Cc: Joe Jin <joe.jin@oracle.com> Cc: Junxiao Bi <junxiao.bi@oracle.com> Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com> Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com> Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rds/tcp.c')
-rw-r--r--net/rds/tcp.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/net/rds/tcp.c b/net/rds/tcp.c
index 5438f6725092..a973d3b4dff0 100644
--- a/net/rds/tcp.c
+++ b/net/rds/tcp.c
@@ -652,16 +652,12 @@ static int rds_tcp_init(void)
if (ret)
goto out_pernet;
- ret = rds_trans_register(&rds_tcp_transport);
- if (ret)
- goto out_recv;
+ rds_trans_register(&rds_tcp_transport);
rds_info_register_func(RDS_INFO_TCP_SOCKETS, rds_tcp_tc_info);
goto out;
-out_recv:
- rds_tcp_recv_exit();
out_pernet:
unregister_pernet_subsys(&rds_tcp_net_ops);
out_notifier: