fdisk_ask_partnum() already prints its own diagnostics on failure,
so go directly to 'out' instead of 'err' which would print a
redundant "Could not resize partition" message with a meaningless
partition number.
Also removes the need for the i=0 initialization from the previous
commit, since 'i' is no longer used on the fdisk_ask_partnum()
error path.
Addresses: https://github.com/util-linux/util-linux/pull/4394
Signed-off-by: Karel Zak <kzak@redhat.com>
rc = fdisk_ask_partnum(cxt, &i, FALSE);
if (rc)
- goto err;
+ goto out;
rc = fdisk_partition_get_max_size(cxt, i, &max_size);
if (rc)