From: zhaoxiao <zhaoxiao@uniontech.com>
To: tytso@mit.edu
Cc: linux-kernel@vger.kernel.org, zhaoxiao <zhaoxiao@uniontech.com>
Subject: [PATCH] random: remove the redundant space for the pointer variables.
Date: Fri, 26 Feb 2021 20:47:31 +0800 [thread overview]
Message-ID: <20210226124731.26626-1-zhaoxiao@uniontech.com> (raw)
The following pointer variables don't meet the kernel coding style,
so remove the redundant space.
Signed-off-by: zhaoxiao <zhaoxiao@uniontech.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
reply other threads:[~2021-02-26 12:50 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210226124731.26626-1-zhaoxiao@uniontech.com \
--to=zhaoxiao@uniontech.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tytso@mit.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).