]> git.baikalelectronics.ru Git - uboot.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)
commit76334a51229bc6a8d2f11db98686467d754f92e3
tree8a2b6570dcf3c37f581346ae8366d32fe91d64a1
parentf286a4632d79e19ec17b2ab4e7212e8907539525
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