Skip to content

Commit 422c819

Browse files
Zhu Yanjunjfvogel
authored andcommitted
net/rds: make the source code clean
Since the variable ic is set at the beginning of the function, it is not necessary to set it again. Orabug: 28289486 Signed-off-by: Zhu Yanjun <[email protected]> Reviewed-by: Håkon Bugge <[email protected]>
1 parent 798504a commit 422c819

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

net/rds/ib.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,6 @@ static int rds_ib_conn_info_visitor(struct rds_connection *conn,
270270
if (rds_conn_state(conn) == RDS_CONN_UP) {
271271
struct rds_ib_device *rds_ibdev;
272272

273-
ic = conn->c_transport_data;
274-
275273
rdma_read_gids(ic->i_cm_id, (union ib_gid *)&iinfo->src_gid,
276274
(union ib_gid *)&iinfo->dst_gid);
277275

@@ -320,7 +318,6 @@ static int rds6_ib_conn_info_visitor(struct rds_connection *conn,
320318
if (rds_conn_state(conn) == RDS_CONN_UP) {
321319
struct rds_ib_device *rds_ibdev;
322320

323-
ic = conn->c_transport_data;
324321
rdma_read_gids(ic->i_cm_id, (union ib_gid *)&iinfo6->src_gid,
325322
(union ib_gid *)&iinfo6->dst_gid);
326323
rds_ibdev = ic->rds_ibdev;

0 commit comments

Comments
 (0)