]> git.baikalelectronics.ru Git - uboot.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)
commit5c95ad65c5b460828a0c5bd71384ffe21364a0b4
tree5b31016e65a4183d77f8914aa5b37737b82c66a4
parent7c2e71f8a6851a93fb2e11b4fbbc15f5e05e564f
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