RDMA/rtrs-clt: Remove 'addr' from rtrs_clt_add_path_to_arr
authorGuoqing Jiang <guoqing.jiang@cloud.ionos.com>
Fri, 23 Oct 2020 07:43:53 +0000 (09:43 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 28 Oct 2020 16:17:41 +0000 (13:17 -0300)
Remove the argument since it is not used in the function.

Link: https://lore.kernel.org/r/20201023074353.21946-13-jinpu.wang@cloud.ionos.com
Signed-off-by: Guoqing Jiang <guoqing.jiang@cloud.ionos.com>
Signed-off-by: Jack Wang <jinpu.wang@cloud.ionos.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/ulp/rtrs/rtrs-clt.c

index 1b2821d71b46657777edc5f284f0817c936c6d28..9d359c8f2f81f1109039bfaf42859022ab3a072d 100644 (file)
@@ -2161,8 +2161,7 @@ static void rtrs_clt_remove_path_from_arr(struct rtrs_clt_sess *sess)
        mutex_unlock(&clt->paths_mutex);
 }
 
-static void rtrs_clt_add_path_to_arr(struct rtrs_clt_sess *sess,
-                                     struct rtrs_addr *addr)
+static void rtrs_clt_add_path_to_arr(struct rtrs_clt_sess *sess)
 {
        struct rtrs_clt *clt = sess->clt;
 
@@ -2937,7 +2936,7 @@ int rtrs_clt_create_path_from_sysfs(struct rtrs_clt *clt,
         * IO will never grab it.  Also it is very important to add
         * path before init, since init fires LINK_CONNECTED event.
         */
-       rtrs_clt_add_path_to_arr(sess, addr);
+       rtrs_clt_add_path_to_arr(sess);
 
        err = init_sess(sess);
        if (err)