RDMA/rtrs: server: Use already dereferenced rtrs_sess structure
authorMd Haris Iqbal <haris.phnx@gmail.com>
Fri, 22 May 2020 08:28:33 +0000 (08:28 +0000)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 22 May 2020 18:50:22 +0000 (15:50 -0300)
commite172037be757dc7ab6ee67932c6663a2ff8cfd27
tree052bf1d5c2388f5868f89bf4df1ab4d5e903874f
parentcdb685cb9158fa67f6f4584ea39279ed7ae39253
RDMA/rtrs: server: Use already dereferenced rtrs_sess structure

The rtrs_sess structure has already been extracted above from the
rtrs_srv_sess structure. Use that to avoid redundant dereferencing.

Fixes: 9cb837480424 ("RDMA/rtrs: server: main functionality")
Link: https://lore.kernel.org/r/20200522082833.1480551-1-haris.phnx@gmail.com
Signed-off-by: Md Haris Iqbal <haris.phnx@gmail.com>
Acked-by: Danil Kipnis <danil.kipnis@cloud.ionos.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/ulp/rtrs/rtrs-srv.c