crypto/cnxk: remove redundant assignment
authorAnoob Joseph <anoobj@marvell.com>
Thu, 2 Sep 2021 12:22:32 +0000 (17:52 +0530)
committerAkhil Goyal <gakhil@marvell.com>
Mon, 6 Sep 2021 19:46:34 +0000 (21:46 +0200)
The assignment to -1 is not required. Remove the same.

Signed-off-by: Anoob Joseph <anoobj@marvell.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
drivers/crypto/cnxk/cn10k_cryptodev_ops.c
drivers/crypto/cnxk/cn9k_cryptodev_ops.c

index 28055ac..cccca77 100644 (file)
@@ -84,7 +84,7 @@ cpt_sym_inst_fill(struct cnxk_cpt_qp *qp, struct rte_crypto_op *op,
                  struct cpt_inst_s *inst)
 {
        uint64_t cpt_op;
-       int ret = -1;
+       int ret;
 
        cpt_op = sess->cpt_op;
 
index 08f08c8..4c0eb12 100644 (file)
@@ -20,7 +20,7 @@ cn9k_cpt_sym_inst_fill(struct cnxk_cpt_qp *qp, struct rte_crypto_op *op,
                       struct cpt_inst_s *inst)
 {
        uint64_t cpt_op;
-       int ret = -1;
+       int ret;
 
        cpt_op = sess->cpt_op;