]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fdisk: clean up dead code in resize_partition()
authorlijian <lijian01@kylinos.cn>
Wed, 24 Jun 2026 09:26:41 +0000 (11:26 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 24 Jun 2026 09:27:29 +0000 (11:27 +0200)
commit9cd920aa6d71b41bc280df87efeec1a1182bc03f
tree35df614a7b8ccfe8b9b991d3d057a1e014ec9588
parentcf32e52005b55320f7e9ad14eee64977e46736c6
fdisk: clean up dead code in resize_partition()

Remove unused variables 'pa', 'next', 'tb' and their corresponding
fdisk_unref_partition()/fdisk_unref_table() calls in the cleanup
path -- all three are initialized to NULL and never reassigned.

[kzak@redhat.com: - fix identification, remove also 'tb']

Signed-off-by: lijian <lijian01@kylinos.cn>
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/fdisk.c