]> git.dujemihanovic.xyz Git - u-boot.git/commit
fs: ext4: constify the buffer passed to write functions
authorJean-Jacques Hiblot <jjhiblot@ti.com>
Wed, 13 Feb 2019 11:15:24 +0000 (12:15 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 9 Apr 2019 19:34:15 +0000 (15:34 -0400)
commitb000180b0f467851525aae3d0dfb8ab3a9dbcf8f
tree8a2b6570dcf3c37f581346ae8366d32fe91d64a1
parent290100583dc70185e76ddaa00c1a50abd162a5ad
fs: ext4: constify the buffer passed to write functions

There is no need to modify the buffer passed to ext4fs_write_file().
The memset() call is not required here and was likely copied from the
equivalent part of the ext4fs_read_file() function where we do need it.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
fs/ext4/ext4_common.c
fs/ext4/ext4_common.h
fs/ext4/ext4_write.c
include/ext4fs.h