From: Jack Wang <jinpu.wang@xxxxxxxxxxxxxxx> Signed-off-by: Jack Wang <jinpu.wang@xxxxxxxxx> Signed-off-by: Gioh Kim <gi-oh.kim@xxxxxxxxx> --- drivers/infiniband/ulp/rtrs/rtrs-srv.c | 2 -- drivers/infiniband/ulp/rtrs/rtrs.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/infiniband/ulp/rtrs/rtrs-srv.c b/drivers/infiniband/ulp/rtrs/rtrs-srv.c index 8ec9c30b9887..e11e91626b41 100644 --- a/drivers/infiniband/ulp/rtrs/rtrs-srv.c +++ b/drivers/infiniband/ulp/rtrs/rtrs-srv.c @@ -1691,7 +1691,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) { @@ -1729,7 +1728,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)); diff --git a/drivers/infiniband/ulp/rtrs/rtrs.c b/drivers/infiniband/ulp/rtrs/rtrs.c index 1dd772d84e71..bc08b7f6e5e2 100644 --- a/drivers/infiniband/ulp/rtrs/rtrs.c +++ b/drivers/infiniband/ulp/rtrs/rtrs.c @@ -466,7 +466,7 @@ EXPORT_SYMBOL(sockaddr_to_str); /** * rtrs_addr_to_str() - convert rtrs_addr to a string "src@dst" * @addr: the rtrs_addr structure to be converted - * @str: string containing source and destination addr of a path + * @buf: string containing source and destination addr of a path * separated by '@' I.e. "ip:1.1.1.1@ip:1.1.1.2" * "ip:1.1.1.1@ip:1.1.1.2". * @len: string length -- 2.25.1