summaryrefslogtreecommitdiff
path: root/drivers/infiniband/ulp
diff options
context:
space:
mode:
authorJack Wang <jinpu.wang@cloud.ionos.com>2021-03-25 18:33:03 +0300
committerJason Gunthorpe <jgg@nvidia.com>2021-04-01 21:59:46 +0300
commit11b74cbf8ea50f781dde4fd2a6003c86ce19285a (patch)
tree0e4a91ce538dc443475a6ea075c426fba00139fe /drivers/infiniband/ulp
parent88e2f1056452383a36387fd088889b4b4c70c706 (diff)
downloadlinux-11b74cbf8ea50f781dde4fd2a6003c86ce19285a.tar.xz
RDMA/rtrs: Cleanup unused 's' variable in __alloc_sess
Link: https://lore.kernel.org/r/20210325153308.1214057-18-gi-oh.kim@ionos.com Signed-off-by: Jack Wang <jinpu.wang@ionos.com> Signed-off-by: Gioh Kim <gi-oh.kim@ionos.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/ulp')
-rw-r--r--drivers/infiniband/ulp/rtrs/rtrs-srv.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/infiniband/ulp/rtrs/rtrs-srv.c b/drivers/infiniband/ulp/rtrs/rtrs-srv.c
index 739b9b112a78..5e9bb7bf5ef3 100644
--- a/drivers/infiniband/ulp/rtrs/rtrs-srv.c
+++ b/drivers/infiniband/ulp/rtrs/rtrs-srv.c
@@ -1684,7 +1684,6 @@ static struct rtrs_srv_sess *__alloc_sess(struct rtrs_srv *srv,
struct rtrs_srv_sess *sess;
int err = -ENOMEM;
char str[NAME_MAX];
- struct rtrs_sess *s;
struct rtrs_addr path;
if (srv->paths_num >= MAX_PATHS_NUM) {
@@ -1722,7 +1721,6 @@ static struct rtrs_srv_sess *__alloc_sess(struct rtrs_srv *srv,
sess->s.src_addr = cm_id->route.addr.src_addr;
/* temporary until receiving session-name from client */
- s = &sess->s;
path.src = &sess->s.src_addr;
path.dst = &sess->s.dst_addr;
rtrs_addr_to_str(&path, str, sizeof(str));