aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXU pengfei <[email protected]>2022-10-26 16:05:18 +0800
committerAndrew Morton <[email protected]>2022-11-18 13:55:08 -0800
commit4197530bf167d5f15e68c4e4e982368c3d0a0112 (patch)
tree1cbdd284a31f04377bbdf77bdb62321a838c87e1
parentebeccaaef67a4895d2496ab8d9c2fb8d89201211 (diff)
initramfs: remove unnecessary (void*) conversion
Remove unnecessary void* type casting. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: XU pengfei <[email protected]> Cc: Christian Brauner <[email protected]> Cc: David Disseldorp <[email protected]> Cc: "Eric W . Biederman" <[email protected]> Cc: Martin Wilck <[email protected]> Cc: Mike Rapoport <[email protected]> Cc: wuchi <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
-rw-r--r--init/initramfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/init/initramfs.c b/init/initramfs.c
index 2f5bfb7d7652..62321883fe61 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)