From: Anoob Joseph Date: Thu, 2 Sep 2021 12:22:32 +0000 (+0530) Subject: crypto/cnxk: remove redundant assignment X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=516f595a63d801f805b5a16968c4084a1714a4df;p=dpdk.git crypto/cnxk: remove redundant assignment The assignment to -1 is not required. Remove the same. Signed-off-by: Anoob Joseph Acked-by: Akhil Goyal --- diff --git a/drivers/crypto/cnxk/cn10k_cryptodev_ops.c b/drivers/crypto/cnxk/cn10k_cryptodev_ops.c index 28055aceed..cccca77f60 100644 --- a/drivers/crypto/cnxk/cn10k_cryptodev_ops.c +++ b/drivers/crypto/cnxk/cn10k_cryptodev_ops.c @@ -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; diff --git a/drivers/crypto/cnxk/cn9k_cryptodev_ops.c b/drivers/crypto/cnxk/cn9k_cryptodev_ops.c index 08f08c8339..4c0eb122c4 100644 --- a/drivers/crypto/cnxk/cn9k_cryptodev_ops.c +++ b/drivers/crypto/cnxk/cn9k_cryptodev_ops.c @@ -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;