Whamcloud - gitweb
AOSP: ext2simg: clean up add_chunk()
authorEric Biggers <ebiggers@google.com>
Thu, 23 Mar 2023 00:44:22 +0000 (00:44 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 20 May 2024 17:04:03 +0000 (13:04 -0400)
commit087061b9cc1eba1965d6cd169183a10fc4165e85
treebd7f665735c2beae0fbb197ae1ca15b20a5d9a50
parentc642b9c3a6119a701dc2b33f0d1f7e98e2a543aa
AOSP: ext2simg: clean up add_chunk()

Remove a level of indentation, check a bool in the normal way, and
simplify the linked list handling.  No change in behavior.

Change-Id: I12589a254f155b1c40418458a666b87c7ef5c1cf
Signed-off-by: Eric Biggers <ebiggers@google.com>
From AOSP commit: 7d0f5c1aca332da22e4878f5825e0ffb5122f96b
contrib/android/ext2simg.c