Skip to content

Commit 16595bf

Browse files
eaibmzmetan-ucw
authored andcommitted
lib/tst_virt: fix is_ibmz(VIRT_IBMZ) on IBM System Z
is_ibmz(VIRT_IBMZ) always returns 0 which is incorrect on IBM System Z. Don't check virt_type unnecessarily because it is checked later on in the switch statement. Fixes commit b2cc450 ("lib/tst_virt: support IBM/Z LPAR and z/VM virtualization environments"). Signed-off-by: Alexander Egorenkov <[email protected]> Reviewed-by: Cyril Hrubis <[email protected]>
1 parent b2cc450 commit 16595bf

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/tst_virt.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,6 @@ static int is_ibmz(int virt_type)
7070
char line[64];
7171
int found_lpar, found_zvm;
7272

73-
if (virt_type != VIRT_IBMZ_LPAR && virt_type != VIRT_IBMZ_ZVM)
74-
return 0;
75-
7673
if (access("/proc/sysinfo", F_OK) != 0)
7774
return 0;
7875

0 commit comments

Comments
 (0)