projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88e2f10
)
RDMA/rtrs: Cleanup unused 's' variable in __alloc_sess
author
Jack Wang
<jinpu.wang@cloud.ionos.com>
Thu, 25 Mar 2021 15:33:03 +0000
(16:33 +0100)
committer
Jason Gunthorpe
<jgg@nvidia.com>
Thu, 1 Apr 2021 18:59:46 +0000
(15:59 -0300)
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>
drivers/infiniband/ulp/rtrs/rtrs-srv.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/ulp/rtrs/rtrs-srv.c
b/drivers/infiniband/ulp/rtrs/rtrs-srv.c
index 739b9b112a78280f0a34a9f4080443532fb2806a..5e9bb7bf5ef32ce0840f8a1addeb92428172a59e 100644
(file)
--- 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));