From 4d004cf8b132c3f259d90faa1f2ebdafa062c0e0 Mon Sep 17 00:00:00 2001 From: Eduard Shishkin Date: Tue, 17 Sep 2024 13:10:30 +0200 Subject: [PATCH] zipl/src: drop never happening case in check_dump_device_late() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In the function check_dump_device_late() drop the case of (info->device != target_info->device) which never happens. Indeed, the @info created in check_dump_device_late() coincides with the @target_info previously created by prepare_build_program_table_{file, device}. Signed-off-by: Eduard Shishkin Reviewed-by: Alexander Egorenkov Signed-off-by: Jan Höppner --- zipl/src/bootmap.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/zipl/src/bootmap.c b/zipl/src/bootmap.c index c815b026..b2823c6f 100644 --- a/zipl/src/bootmap.c +++ b/zipl/src/bootmap.c @@ -1004,12 +1004,6 @@ check_dump_device_late(char *partition, struct disk_info *target_info, disk_free_info(info); return -1; } - if (info->device != target_info->device) { - error_reason("Target directory is not on same device as " - "'%s'", partition); - disk_free_info(info); - return -1; - } disk_free_info(info); return 0; }