mirror of
https://github.com/torvalds/linux.git
synced 2024-11-21 19:41:42 +00:00
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>
This commit is contained in:
parent
ebeccaaef6
commit
4197530bf1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user