* [PATCH] initramfs: Remove unnecessary (void*) conversions
@ 2022-11-04 2:07 Li zeming
0 siblings, 0 replies; only message in thread
From: Li zeming @ 2022-11-04 2:07 UTC (permalink / raw)
To: akpm, ddiss, brauner, rppt, mwilck, ebiederm; +Cc: linux-kernel, Li zeming
The bufv pointer does not need to cast the type.
Signed-off-by: Li zeming <zeming@nfschina.com>
---
init/initramfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/init/initramfs.c b/init/initramfs.c
index 18229cfe8906..3dbd0012eb3b 100644
--- a/init/initramfs.c
+++ b/init/initramfs.c
@@ -461,7 +461,7 @@ static long __init write_buffer(char *buf, unsigned long len)
static long __init flush_buffer(void *bufv, unsigned long len)
{
- char *buf = (char *) bufv;
+ char *buf = bufv;
long written;
long origLen = len;
if (message)
--
2.18.2
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-11-04 2:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-04 2:07 [PATCH] initramfs: Remove unnecessary (void*) conversions Li zeming
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®