disk: efi: unify code for finding a valid gpt
authorUrja Rannikko <urjaman@gmail.com>
Thu, 11 Apr 2019 20:27:50 +0000 (20:27 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Fri, 23 Aug 2019 10:15:32 +0000 (18:15 +0800)
commit20c568cae6e95c727bb97ba55a558916dc42baf4
tree0c04ba5a3b118f5ccecf4b927d48fc3a7db3a0ef
parentfa177ff0208b74ea481202705eaddaaa29ba24fb
disk: efi: unify code for finding a valid gpt

There were 3 copies of the same sequence, make it into a function.

Signed-off-by: Urja Rannikko <urjaman@gmail.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
disk/part_efi.c