Skip to content

Commit 78beb25

Browse files
Zhu Yanjunvijay-suman
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]> Orabug: 33590097 UEK6 => UEK7 (cherry picked from commit a4572c1) cherry-pick-repo=UEK/production/linux-uek.git Signed-off-by: Gerd Rausch <[email protected]> Reviewed-by: William Kucharski <[email protected]> Orabug: 33590087 UEK7 => LUCI (cherry picked from commit f0c53f5) cherry-pick-repo=UEK/production/linux-uek.git Signed-off-by: Gerd Rausch <[email protected]> Reviewed-by: William Kucharski <[email protected]>
1 parent f1b8780 commit 78beb25

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)