* [PATCH v2] nvmet-auth: remove redundant parameters req
@ 2022-08-23 2:14 Genjian
2022-09-05 11:03 ` Christoph Hellwig
0 siblings, 1 reply; 2+ messages in thread
From: Genjian @ 2022-08-23 2:14 UTC (permalink / raw)
To: hch, sagi, kch; +Cc: linux-nvme, linux-kernel, zhanggenjian123, Genjian Zhang
From: Genjian Zhang <zhanggenjian@kylinos.cn>
The parameter is not used in this function, so remove it.
Signed-off-by: Genjian Zhang <zhanggenjian@kylinos.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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] nvmet-auth: remove redundant parameters req
2022-08-23 2:14 [PATCH v2] nvmet-auth: remove redundant parameters req Genjian
@ 2022-09-05 11:03 ` Christoph Hellwig
0 siblings, 0 replies; 2+ messages in thread
From: Christoph Hellwig @ 2022-09-05 11:03 UTC (permalink / raw)
To: Genjian; +Cc: hch, sagi, kch, linux-nvme, linux-kernel, Genjian Zhang
Thanks,
applied to nvme-6.1.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-09-05 11:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-23 2:14 [PATCH v2] nvmet-auth: remove redundant parameters req Genjian
2022-09-05 11:03 ` Christoph Hellwig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox