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]
Date:   Fri, 26 Feb 2021 20:47:31 +0800
From:   zhaoxiao <zhaoxiao@...ontech.com>
To:     tytso@....edu
Cc:     linux-kernel@...r.kernel.org, zhaoxiao <zhaoxiao@...ontech.com>
Subject: [PATCH] random: remove the redundant space for the pointer variables.

The following pointer variables don't meet the kernel coding style,
so remove the redundant space.

Signed-off-by: zhaoxiao <zhaoxiao@...ontech.com>
---
 drivers/char/random.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/char/random.c b/drivers/char/random.c
index 0fe9e200e4c8..bbec50b8641e 100644
--- a/drivers/char/random.c
+++ b/drivers/char/random.c
@@ -920,8 +920,8 @@ static int crng_slow_load(const char *cp, size_t len)
 	static unsigned char	lfsr = 1;
 	unsigned char		tmp;
 	unsigned		i, max = CHACHA_KEY_SIZE;
-	const char *		src_buf = cp;
-	char *			dest_buf = (char *) &primary_crng.state[4];
+	const char		*src_buf = cp;
+	char			*dest_buf = (char *)&primary_crng.state[4];
 
 	if (!spin_trylock_irqsave(&primary_crng.lock, flags))
 		return 0;
@@ -1855,7 +1855,7 @@ random_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos)
 }
 
 static __poll_t
-random_poll(struct file *file, poll_table * wait)
+random_poll(struct file *file, poll_table *wait)
 {
 	__poll_t mask;
 
-- 
2.30.1



Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ