summaryrefslogtreecommitdiff
path: root/fs/ext4/ext4_common.c
diff options
context:
space:
mode:
authorJean-Jacques Hiblot <jjhiblot@ti.com>2019-02-13 14:15:24 +0300
committerTom Rini <trini@konsulko.com>2019-04-09 22:34:15 +0300
commitb000180b0f467851525aae3d0dfb8ab3a9dbcf8f (patch)
tree8a2b6570dcf3c37f581346ae8366d32fe91d64a1 /fs/ext4/ext4_common.c
parent290100583dc70185e76ddaa00c1a50abd162a5ad (diff)
downloadu-boot-b000180b0f467851525aae3d0dfb8ab3a9dbcf8f.tar.xz
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>
Diffstat (limited to 'fs/ext4/ext4_common.c')
-rw-r--r--fs/ext4/ext4_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/ext4_common.c b/fs/ext4/ext4_common.c
index 29308e3b44..e9123785f1 100644
--- a/fs/ext4/ext4_common.c
+++ b/fs/ext4/ext4_common.c
@@ -190,7 +190,7 @@ uint32_t ext4fs_div_roundup(uint32_t size, uint32_t n)
return res;
}
-void put_ext4(uint64_t off, void *buf, uint32_t size)
+void put_ext4(uint64_t off, const void *buf, uint32_t size)
{
uint64_t startblock;
uint64_t remainder;