initramfs: Remove unnecessary (void*) conversions

Message ID 20221104020726.3413-1-zeming@nfschina.com
State New
Headers
Series initramfs: Remove unnecessary (void*) conversions |

Commit Message

Li zeming Nov. 4, 2022, 2:07 a.m. UTC
  The bufv pointer does not need to cast the type.

Signed-off-by: Li zeming <zeming@nfschina.com>
---
 init/initramfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/init/initramfs.c b/init/initramfs.c
index 18229cfe8906..3dbd0012eb3b 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)