Skip to content

Commit 4197530

Browse files
xupf1akpm00
authored andcommitted
initramfs: remove unnecessary (void*) conversion
Remove unnecessary void* type casting. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: XU pengfei <[email protected]> Cc: Christian Brauner <[email protected]> Cc: David Disseldorp <[email protected]> Cc: "Eric W . Biederman" <[email protected]> Cc: Martin Wilck <[email protected]> Cc: Mike Rapoport <[email protected]> Cc: wuchi <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent ebeccaa commit 4197530

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

init/initramfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ static long __init write_buffer(char *buf, unsigned long len)
461461

462462
static long __init flush_buffer(void *bufv, unsigned long len)
463463
{
464-
char *buf = (char *) bufv;
464+
char *buf = bufv;
465465
long written;
466466
long origLen = len;
467467
if (message)

0 commit comments

Comments
 (0)