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, <[email protected]>
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

Reply via email to