]> git.baikalelectronics.ru Git - kernel.git/commitdiff
nvmet-auth: remove redundant parameters req
authorGenjian Zhang <zhanggenjian@kylinos.cn>
Tue, 23 Aug 2022 02:14:41 +0000 (10:14 +0800)
committerChristoph Hellwig <hch@lst.de>
Mon, 19 Sep 2022 09:33:54 +0000 (11:33 +0200)
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>
drivers/nvme/target/fabrics-cmd-auth.c

index 8458ec40340b8dafbc2188f027f9f39d27d297f6..84601e38a335acc2a420dfea9acff520a1f7b6d5 100644 (file)
@@ -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);