[parted-devel] [PATCH 0/1] simplify code
Arvin Schnell
aschnell at suse.com
Wed Jul 27 14:33:54 BST 2022
Hi,
here is a tiny patch to simplify the code.
_PedDiskOps::get_max_primary_partition_count is always available,
the macro PT_op_function_initializers ensures it. So in parted.c
no check is needed and we can even use the function
ped_disk_get_max_primary_partition_count to get the value.
Thanks,
Arvin
--
Arvin Schnell, <aschnell at suse.com>
Senior Software Engineer, Research & Development
SUSE Software Solutions Germany GmbH
Frankenstraße 146
90461 Nürnberg
Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Ivo Totev, Andrew Myers, Andrew McDonald,
Boudien Moerman
More information about the parted-devel
mailing list