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: <6e603578-2250-4ace-aa43-818b8f23e2e9@stanley.mountain>
Date: Thu, 15 Aug 2024 00:12:03 +0300
From: Dan Carpenter <dan.carpenter@...aro.org>
To: Herbert Xu <herbert@...dor.apana.org.au>
Cc: "David S. Miller" <davem@...emloft.net>,
	Ruud Derwig <Ruud.Derwig@...opsys.com>,
	Bhoomika K <bhoomikak@...avyalabs.com>,
	Pavitrakumar M <pavitrakumarm@...avyalabs.com>,
	linux-crypto@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH 3/3] crypto: spacc - Add a new line in spacc_open()

Put the break statement should be on its own line.

Signed-off-by: Dan Carpenter <dan.carpenter@...aro.org>
---
 drivers/crypto/dwc-spacc/spacc_core.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/crypto/dwc-spacc/spacc_core.c b/drivers/crypto/dwc-spacc/spacc_core.c
index b7630f559973..b9e0d3227f81 100644
--- a/drivers/crypto/dwc-spacc/spacc_core.c
+++ b/drivers/crypto/dwc-spacc/spacc_core.c
@@ -1904,7 +1904,8 @@ int spacc_open(struct spacc_device *spacc, int enc, int hash, int ctxid,
 		ctrl |= SPACC_CTRL_SET(SPACC_CTRL_HASH_ALG,
 				H_SHAKE256);
 		ctrl |= SPACC_CTRL_SET(SPACC_CTRL_HASH_MODE,
-				HM_SHAKE_KMAC); break;
+				HM_SHAKE_KMAC);
+		break;
 	case CRYPTO_MODE_MAC_KMACXOF128:
 		ctrl |= SPACC_CTRL_SET(SPACC_CTRL_HASH_ALG,
 				H_SHAKE128);
-- 
2.43.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ