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>
このコミットが含まれているのは:
@@ -438,16 +438,12 @@ int rds_ib_init(void)
|
||||
if (ret)
|
||||
goto out_sysctl;
|
||||
|
||||
ret = rds_trans_register(&rds_ib_transport);
|
||||
if (ret)
|
||||
goto out_recv;
|
||||
rds_trans_register(&rds_ib_transport);
|
||||
|
||||
rds_info_register_func(RDS_INFO_IB_CONNECTIONS, rds_ib_ic_info);
|
||||
|
||||
goto out;
|
||||
|
||||
out_recv:
|
||||
rds_ib_recv_exit();
|
||||
out_sysctl:
|
||||
rds_ib_sysctl_exit();
|
||||
out_ibreg:
|
||||
|
新しいイシューから参照
ユーザーをブロックする