diff options
author | Zhu Yanjun <yanjun.zhu@oracle.com> | 2017-03-03 00:44:26 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-03-03 09:51:22 -0800 |
commit | a8d63a53b3eac8626f62336dcc327c18f1bbca78 (patch) | |
tree | 774e26f9fd85f6bc59afad87104dd99f8633dee3 /net/rds/transport.c | |
parent | 37411cad633f5e41f8a13007654909d21b19363a (diff) | |
download | linux-a8d63a53b3eac8626f62336dcc327c18f1bbca78.tar.bz2 |
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/transport.c')
-rw-r--r-- | net/rds/transport.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/rds/transport.c b/net/rds/transport.c index 2ffd3e30c643..0b188dd0a344 100644 --- a/net/rds/transport.c +++ b/net/rds/transport.c @@ -40,7 +40,7 @@ static struct rds_transport *transports[RDS_TRANS_COUNT]; static DECLARE_RWSEM(rds_trans_sem); -int rds_trans_register(struct rds_transport *trans) +void rds_trans_register(struct rds_transport *trans) { BUG_ON(strlen(trans->t_name) + 1 > TRANSNAMSIZ); @@ -55,8 +55,6 @@ int rds_trans_register(struct rds_transport *trans) } up_write(&rds_trans_sem); - - return 0; } EXPORT_SYMBOL_GPL(rds_trans_register); |