Skip to contentSkip to conversation

initramfs: Remove unnecessary (void*) conversions

PATCH New Li zeming 1 participant 1 message Nov 4, 2022 VFS

lore
Share & tools
lore

Li zeming

author
#0 lore raw

PATCH 1/1 initramfs: Remove unnecessary (void*) conversions

The bufv pointer does not need to cast the type.

---
 init/initramfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
init/initramfs.c +1 -1
index 18229cfe8906..3dbd0012eb3b 100644
@@ -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)
Signature · 1 line
2.18.2