diff options
author | XU pengfei <xupengfei@nfschina.com> | 2022-10-26 16:05:18 +0800 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2022-11-18 13:55:08 -0800 |
commit | 4197530bf167d5f15e68c4e4e982368c3d0a0112 (patch) | |
tree | 1cbdd284a31f04377bbdf77bdb62321a838c87e1 /init | |
parent | ebeccaaef67a4895d2496ab8d9c2fb8d89201211 (diff) | |
download | linux-4197530bf167d5f15e68c4e4e982368c3d0a0112.tar.gz linux-4197530bf167d5f15e68c4e4e982368c3d0a0112.tar.bz2 linux-4197530bf167d5f15e68c4e4e982368c3d0a0112.zip |
initramfs: remove unnecessary (void*) conversion
Remove unnecessary void* type casting.
Link: https://lkml.kernel.org/r/20221026080517.3221-1-xupengfei@nfschina.com
Signed-off-by: XU pengfei <xupengfei@nfschina.com>
Cc: Christian Brauner <brauner@kernel.org>
Cc: David Disseldorp <ddiss@suse.de>
Cc: "Eric W . Biederman" <ebiederm@xmission.com>
Cc: Martin Wilck <mwilck@suse.com>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: wuchi <wuchi.zero@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'init')
-rw-r--r-- | init/initramfs.c | 2 |
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) |