From: XU pengfei Date: Wed, 26 Oct 2022 08:05:18 +0000 (+0800) Subject: initramfs: remove unnecessary (void*) conversion X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=4197530bf167d5f15e68c4e4e982368c3d0a0112;p=linux.git 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 Cc: Christian Brauner Cc: David Disseldorp Cc: "Eric W . Biederman" Cc: Martin Wilck Cc: Mike Rapoport Cc: wuchi Signed-off-by: Andrew Morton --- diff --git a/init/initramfs.c b/init/initramfs.c index 2f5bfb7d76521..62321883fe613 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)