]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libfdisk: gpt: avoid unnecessary pmbr check
authorDavidlohr Bueso <davidlohr@hp.com>
Sun, 22 Sep 2013 03:45:14 +0000 (20:45 -0700)
committerKarel Zak <kzak@redhat.com>
Wed, 25 Sep 2013 09:13:38 +0000 (11:13 +0200)
commitac920fed6cce7ad84e25eeb8df38d8e966c52946
tree422346df226c46b5adbfed7256e6ee242fa245a9
parente065a597d6d13455e388b44d94f51ac4ba539570
libfdisk: gpt: avoid unnecessary pmbr check

We only jump to the 'check_hybrid' label when a valid pmbr
is detected, so we need not recheck again. Move the label's
logic so it doesn't include the check.

Signed-off-by: Davidlohr Bueso <davidlohr@hp.com>
libfdisk/src/gpt.c