diff options
author | XU pengfei <xupengfei@nfschina.com> | 2022-10-26 10:05:18 +0200 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2022-11-18 22:55:08 +0100 |
commit | 4197530bf167d5f15e68c4e4e982368c3d0a0112 (patch) | |
tree | 1cbdd284a31f04377bbdf77bdb62321a838c87e1 /init/initramfs.c | |
parent | nilfs2: fix shift-out-of-bounds due to too large exponent of block size (diff) | |
download | linux-4197530bf167d5f15e68c4e4e982368c3d0a0112.tar.xz 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/initramfs.c')
-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) |