From: Zhiqi Song songzhiqi1@huawei.com
Remove redundant variable definition of key format transform function.
Signed-off-by: Zhiqi Song songzhiqi1@huawei.com --- v1/drv/hisi_hpre_udrv.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/v1/drv/hisi_hpre_udrv.c b/v1/drv/hisi_hpre_udrv.c index 4cd030f4..7873191d 100644 --- a/v1/drv/hisi_hpre_udrv.c +++ b/v1/drv/hisi_hpre_udrv.c @@ -854,14 +854,8 @@ static int trans_cv_param_to_hpre_bin(struct wd_dtb *p, struct wd_dtb *a,
static int trans_d_to_hpre_bin(struct wd_dtb *d) { - int ret; - - ret = qm_crypto_bin_to_hpre_bin(d->data, (const char *)d->data, + return qm_crypto_bin_to_hpre_bin(d->data, (const char *)d->data, d->bsize, d->dsize, "ecc d"); - if (unlikely(ret)) - return ret; - - return 0; }
static bool less_than_latter(struct wd_dtb *d, struct wd_dtb *n)