Skip to content

Commit 0cb3c9c

Browse files
ye xingchenherbertx
authored andcommitted
crypto: octeontx2 - Remove the unneeded result variable
Return the value otx2_cpt_send_mbox_msg() directly instead of storing it in another redundant variable. Reported-by: Zeal Robot <[email protected]> Signed-off-by: ye xingchen <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 6a40fb0 commit 0cb3c9c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

drivers/crypto/marvell/octeontx2/otx2_cptvf_mbox.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@ int otx2_cptvf_send_kvf_limits_msg(struct otx2_cptvf_dev *cptvf)
191191
struct otx2_mbox *mbox = &cptvf->pfvf_mbox;
192192
struct pci_dev *pdev = cptvf->pdev;
193193
struct mbox_msghdr *req;
194-
int ret;
195194

196195
req = (struct mbox_msghdr *)
197196
otx2_mbox_alloc_msg_rsp(mbox, 0, sizeof(*req),
@@ -204,7 +203,5 @@ int otx2_cptvf_send_kvf_limits_msg(struct otx2_cptvf_dev *cptvf)
204203
req->sig = OTX2_MBOX_REQ_SIG;
205204
req->pcifunc = OTX2_CPT_RVU_PFFUNC(cptvf->vf_id, 0);
206205

207-
ret = otx2_cpt_send_mbox_msg(mbox, pdev);
208-
209-
return ret;
206+
return otx2_cpt_send_mbox_msg(mbox, pdev);
210207
}

0 commit comments

Comments
 (0)