diff mbox series

[kvm-unit-tests] s390x: Remove sthyi partition number check

Message ID 20210218082449.29876-1-frankja@linux.ibm.com (mailing list archive)
State New, archived
Headers show
Series [kvm-unit-tests] s390x: Remove sthyi partition number check | expand

Commit Message

Janosch Frank Feb. 18, 2021, 8:24 a.m. UTC
Turns out that partition numbers start from 0 and not from 1 so a 0
check doesn't make sense here.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
---
 s390x/sthyi.c | 1 -
 1 file changed, 1 deletion(-)

Comments

David Hildenbrand Feb. 18, 2021, 8:32 a.m. UTC | #1
On 18.02.21 09:24, Janosch Frank wrote:
> Turns out that partition numbers start from 0 and not from 1 so a 0
> check doesn't make sense here.
> 
> Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
> ---
>   s390x/sthyi.c | 1 -
>   1 file changed, 1 deletion(-)
> 
> diff --git a/s390x/sthyi.c b/s390x/sthyi.c
> index d8dfc854..db90b56f 100644
> --- a/s390x/sthyi.c
> +++ b/s390x/sthyi.c
> @@ -128,7 +128,6 @@ static void test_fcode0_par(struct sthyi_par_sctn *par)
>   		report(sum, "core counts");
>   
>   	if (par->INFPVAL1 & PART_STSI_SUC) {
> -		report(par->INFPPNUM, "number");
>   		report(memcmp(par->INFPPNAM, null_buf, sizeof(par->INFPPNAM)),
>   		       "name");
>   	}
> 

Reviewed-by: David Hildenbrand <david@redhat.com>
Cornelia Huck Feb. 18, 2021, 8:51 a.m. UTC | #2
On Thu, 18 Feb 2021 03:24:49 -0500
Janosch Frank <frankja@linux.ibm.com> wrote:

> Turns out that partition numbers start from 0 and not from 1 so a 0
> check doesn't make sense here.
> 
> Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
> ---
>  s390x/sthyi.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/s390x/sthyi.c b/s390x/sthyi.c
> index d8dfc854..db90b56f 100644
> --- a/s390x/sthyi.c
> +++ b/s390x/sthyi.c
> @@ -128,7 +128,6 @@ static void test_fcode0_par(struct sthyi_par_sctn *par)
>  		report(sum, "core counts");
>  
>  	if (par->INFPVAL1 & PART_STSI_SUC) {
> -		report(par->INFPPNUM, "number");
>  		report(memcmp(par->INFPPNAM, null_buf, sizeof(par->INFPPNAM)),
>  		       "name");
>  	}

Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Claudio Imbrenda Feb. 18, 2021, 2:54 p.m. UTC | #3
On Thu, 18 Feb 2021 03:24:49 -0500
Janosch Frank <frankja@linux.ibm.com> wrote:

> Turns out that partition numbers start from 0 and not from 1 so a 0
> check doesn't make sense here.
> 
> Signed-off-by: Janosch Frank <frankja@linux.ibm.com>

Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>

> ---
>  s390x/sthyi.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/s390x/sthyi.c b/s390x/sthyi.c
> index d8dfc854..db90b56f 100644
> --- a/s390x/sthyi.c
> +++ b/s390x/sthyi.c
> @@ -128,7 +128,6 @@ static void test_fcode0_par(struct sthyi_par_sctn
> *par) report(sum, "core counts");
>  
>  	if (par->INFPVAL1 & PART_STSI_SUC) {
> -		report(par->INFPPNUM, "number");
>  		report(memcmp(par->INFPPNAM, null_buf,
> sizeof(par->INFPPNAM)), "name");
>  	}
diff mbox series

Patch

diff --git a/s390x/sthyi.c b/s390x/sthyi.c
index d8dfc854..db90b56f 100644
--- a/s390x/sthyi.c
+++ b/s390x/sthyi.c
@@ -128,7 +128,6 @@  static void test_fcode0_par(struct sthyi_par_sctn *par)
 		report(sum, "core counts");
 
 	if (par->INFPVAL1 & PART_STSI_SUC) {
-		report(par->INFPPNUM, "number");
 		report(memcmp(par->INFPPNAM, null_buf, sizeof(par->INFPPNAM)),
 		       "name");
 	}