summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGenjian Zhang <zhanggenjian@kylinos.cn>2022-08-23 10:14:41 +0800
committerChristoph Hellwig <hch@lst.de>2022-09-19 11:33:54 +0200
commitc46724cb8947697d4cfa5db44763d7c63b93a02b (patch)
tree74f254596406c401d71f0924ce237f37be9ecec4
parent42147981561c3344d2c6781fe7029e5900daa9fb (diff)
downloadlinux-c46724cb8947697d4cfa5db44763d7c63b93a02b.tar.bz2
nvmet-auth: remove redundant parameters req
The parameter is not used in this function, so remove it. Signed-off-by: Genjian Zhang <zhanggenjian@kylinos.cn> Signed-off-by: Christoph Hellwig <hch@lst.de>
-rw-r--r--drivers/nvme/target/fabrics-cmd-auth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/nvme/target/fabrics-cmd-auth.c b/drivers/nvme/target/fabrics-cmd-auth.c
index 8458ec40340b..84601e38a335 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;
@@ -308,7 +308,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);