lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20220917084430.4131-1-williamsukatube@163.com>
Date:   Sat, 17 Sep 2022 16:44:30 +0800
From:   williamsukatube@....com
To:     linux-kernel@...r.kernel.org
Cc:     haren@...ibm.com, William Dean <williamsukatube@....com>
Subject: [PATCH -next] crypto: simplify code in process_next

From: William Dean <williamsukatube@....com>

It could directly return 'add_template' to simplify code.

Signed-off-by: William Dean <williamsukatube@....com>
---
 lib/842/842_compress.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/lib/842/842_compress.c b/lib/842/842_compress.c
index c02baa4168e1..168950bd00af 100644
--- a/lib/842/842_compress.c
+++ b/lib/842/842_compress.c
@@ -441,7 +441,7 @@ static void update_hashtables(struct sw842_param *p)
  */
 static int process_next(struct sw842_param *p)
 {
-	int ret, i;
+	int i;

 	p->index8[0] = INDEX_NOT_CHECKED;
 	p->index4[0] = INDEX_NOT_CHECKED;
@@ -457,11 +457,7 @@ static int process_next(struct sw842_param *p)
 			break;
 	}

-	ret = add_template(p, i);
-	if (ret)
-		return ret;
-
-	return 0;
+	return add_template(p, i);
 }

 /**
--
2.25.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ