Skip to contentSkip to conversation

crypto: octeontx2 - Remove the unneeded result variable

PATCH In review [email protected] 2 participants 2 messages Sep 20, 2022 – Sep 30, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto: octeontx2 - Remove the unneeded result variable

From: ye xingchen <[email protected]>

Return the value otx2_cpt_send_mbox_msg() directly instead of storing it in another redundant variable.

---
 drivers/crypto/marvell/octeontx2/otx2_cptvf_mbox.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/crypto/marvell/octeontx2/otx2_cptvf_mbox.c +1 -4
index 02cb9e44afd8..75c403f2b1d9 100644
@@ -191,7 +191,6 @@ int otx2_cptvf_send_kvf_limits_msg(struct otx2_cptvf_dev *cptvf)
 	struct otx2_mbox *mbox = &cptvf->pfvf_mbox;
 	struct pci_dev *pdev = cptvf->pdev;
 	struct mbox_msghdr *req;
-	int ret;
 
 	req = (struct mbox_msghdr *)
 	      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)
 	req->sig = OTX2_MBOX_REQ_SIG;
 	req->pcifunc = OTX2_CPT_RVU_PFFUNC(cptvf->vf_id, 0);
 
-	ret = otx2_cpt_send_mbox_msg(mbox, pdev);
-
-	return ret;
+	return otx2_cpt_send_mbox_msg(mbox, pdev);
 }
Signature · 1 line
2.25.1
maintainer
#1 lore raw
Quoted 10 lines · On Tue, Sep 20, 2022 at 06:47:54AM +0000, [email protected] wrote:

From: ye xingchen <[email protected]>

Return the value otx2_cpt_send_mbox_msg() directly instead of storing it in another redundant variable.

---
 drivers/crypto/marvell/octeontx2/otx2_cptvf_mbox.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

Patch applied. Thanks.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt