]> git.dujemihanovic.xyz Git - u-boot.git/commit
fs/squashfs: simplify sqfs_read()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Mon, 11 Apr 2022 20:54:44 +0000 (22:54 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 19 Apr 2022 18:51:11 +0000 (14:51 -0400)
commit9bd89bbd71b12030294210be7c54da4b7cc77f00
tree5b31016e65a4183d77f8914aa5b37737b82c66a4
parent7ffc66e7dbdd2c82b6b544574d39af6412a16b6e
fs/squashfs: simplify sqfs_read()

* Don't check argument of free(). Free does this itself.
* Reduce scope of data_buffer. Remove duplicate free().
* Avoid superfluous NULL assignment.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
fs/squashfs/sqfs.c