initramfs: remove clean_rootfs
authorChristoph Hellwig <hch@lst.de>
Sat, 6 Jun 2020 11:59:54 +0000 (13:59 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 30 Jul 2020 06:22:48 +0000 (08:22 +0200)
commitb2a74d5f9d446ae33a381ed7ba5f283f09bed726
tree4f11533021cc36f82470fda264a8a2f8ce40b72e
parent9ab6b718491b1a3c3eeb52f32a428dc0cbf5bb80
initramfs: remove clean_rootfs

There is no point in trying to clean up after unpacking the initramfs
failed, as it should never get past the magic number check.  In addition
the current code only removes file that are direct children of the root
entry, which wasn't complete anyway

Fixes: df52092f3c97 ("fastboot: remove duplicate unpack_to_rootfs()")
Reported-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
init/initramfs.c