Skip to content

Commit

Permalink
initramfs: remove unnecessary (void*) conversion
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
xupf1 authored and akpm00 committed Oct 28, 2022
1 parent 767906f commit 8efdc6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init/initramfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8efdc6f

Please sign in to comment.