From e0451ee34c5d5c258fbb359a89a7a925ace7efa4 Mon Sep 17 00:00:00 2001
From: Junchong Pan <panjunchong@hisilicon.com>
Date: Fri, 4 Mar 2022 01:56:08 +0000
Subject: [PATCH 079/109] uadk/v1: cleanup ret value

It is unnecessary to initialize variable 'ret' and
return it when the function is executed successfully,
so remove 'ret'.

Signed-off-by: Junchong Pan <panjunchong@hisilicon.com>
---
 v1/wd_aead.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/v1/wd_aead.c b/v1/wd_aead.c
index ad22426..6d8c541 100644
--- a/v1/wd_aead.c
+++ b/v1/wd_aead.c
@@ -263,7 +263,6 @@ free_ctx_id:
 int wcrypto_aead_setauthsize(void *ctx, __u16 authsize)
 {
 	struct wcrypto_aead_ctx *ctxt = ctx;
-	int ret = WD_SUCCESS;
 
 	if (!ctx) {
 		WD_ERR("input param is NULL!\n");
@@ -277,7 +276,7 @@ int wcrypto_aead_setauthsize(void *ctx, __u16 authsize)
 
 	ctxt->auth_size = authsize;
 
-	return ret;
+	return WD_SUCCESS;
 }
 
 int wcrypto_aead_getauthsize(void *ctx)
-- 
2.27.0

