mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 00:32:04 +02:00
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>
This commit is contained in:
committed by
Tom Rini
parent
290100583d
commit
b000180b0f
@@ -134,7 +134,7 @@ extern int gindex;
|
||||
int ext4fs_init(void);
|
||||
void ext4fs_deinit(void);
|
||||
int ext4fs_filename_unlink(char *filename);
|
||||
int ext4fs_write(const char *fname, unsigned char *buffer,
|
||||
int ext4fs_write(const char *fname, const char *buffer,
|
||||
unsigned long sizebytes);
|
||||
int ext4_write_file(const char *filename, void *buf, loff_t offset, loff_t len,
|
||||
loff_t *actwrite);
|
||||
|
Reference in New Issue
Block a user