[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220823021441.968488-1-zhanggenjian@kylinos.cn>
Date: Tue, 23 Aug 2022 10:14:41 +0800
From: Genjian <zhanggenjian123@...il.com>
To: hch@....de, sagi@...mberg.me, kch@...dia.com
Cc: linux-nvme@...ts.infradead.org, linux-kernel@...r.kernel.org,
zhanggenjian123@...il.com, Genjian Zhang <zhanggenjian@...inos.cn>
Subject: [PATCH v2] nvmet-auth: remove redundant parameters req
From: Genjian Zhang <zhanggenjian@...inos.cn>
The parameter is not used in this function, so remove it.
Signed-off-by: Genjian Zhang <zhanggenjian@...inos.cn>
---
drivers/nvme/target/fabrics-cmd-auth.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/nvme/target/fabrics-cmd-auth.c b/drivers/nvme/target/fabrics-cmd-auth.c
index ebdf9aa81041..e467be86db78 100644
--- a/drivers/nvme/target/fabrics-cmd-auth.c
+++ b/drivers/nvme/target/fabrics-cmd-auth.c
@@ -177,7 +177,7 @@ static u16 nvmet_auth_reply(struct nvmet_req *req, void *d)
return 0;
}
-static u16 nvmet_auth_failure2(struct nvmet_req *req, void *d)
+static u16 nvmet_auth_failure2(void *d)
{
struct nvmf_auth_dhchap_failure_data *data = d;
@@ -310,7 +310,7 @@ void nvmet_execute_auth_send(struct nvmet_req *req)
goto done_kfree;
break;
case NVME_AUTH_DHCHAP_MESSAGE_FAILURE2:
- status = nvmet_auth_failure2(req, d);
+ status = nvmet_auth_failure2(d);
if (status) {
pr_warn("ctrl %d qid %d: authentication failed (%d)\n",
ctrl->cntlid, req->sq->qid, status);
--
2.25.1
Powered by blists - more mailing lists