]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: bcachefs: remove superfluous validations
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 25 Jan 2023 05:34:50 +0000 (05:34 +0000)
committerThomas Weißschuh <thomas@t-8ch.de>
Wed, 25 Jan 2023 15:38:20 +0000 (15:38 +0000)
commit9c2caec61bc1a2c4a601df71f023363116348d94
tree2cd5bb73a1fb3efa8ddb35b90766e8070e5f001b
parentdf6e200fd6a3725e7bd00e6a6af6a7656fffae6a
libblkid: bcachefs: remove superfluous validations

These checks are redundant as we already validated
* `dev_idx < bcs->nr_devices` in `probe_bcachefs()`
* `field + BYTES(field) < sb_end` in `probe_bcachefs_sb_fields()`
* `member_field_end(members, bcs->nr_devices - 1) == field + BYTES(field)`
  right above.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
libblkid/src/superblocks/bcache.c