Commit 09a6085c authored by Mathieu Faverge's avatar Mathieu Faverge

Silent warning about double identical test

parent 246c86c3
......@@ -93,9 +93,7 @@ int CORE_zgeadd(MORSE_enum trans, int M, int N,
{
int i, j;
if ((trans != MorseNoTrans) &&
(trans != MorseTrans) &&
(trans != MorseConjTrans))
if ((trans < MorseNoTrans) || (trans > MorseConjTrans))
{
coreblas_error(1, "illegal value of trans");
return -1;
......
......@@ -99,7 +99,7 @@ int CORE_zlatro(MORSE_enum uplo, MORSE_enum trans,
coreblas_error(1, "Illegal value of uplo");
return -1;
}
if ((trans != MorseConjTrans) && (trans != MorseNoTrans) && (trans != MorseTrans) ) {
if ((trans < MorseNoTrans) || (trans > MorseConjTrans)) {
coreblas_error(2, "Illegal value of trans");
return -2;
}
......
......@@ -146,7 +146,7 @@ int CORE_zpemv(MORSE_enum trans, int storev,
/* Check input arguments */
if ((trans != MorseNoTrans) && (trans != MorseTrans) && (trans != MorseConjTrans)) {
if ((trans < MorseNoTrans) || (trans > MorseConjTrans)) {
coreblas_error(1, "Illegal value of trans");
return -1;
}
......
......@@ -118,9 +118,7 @@ int CORE_ztradd(MORSE_enum uplo, MORSE_enum trans, int M, int N,
return -1;
}
if ((trans != MorseNoTrans) &&
(trans != MorseTrans) &&
(trans != MorseConjTrans))
if ((trans < MorseNoTrans) || (trans > MorseConjTrans))
{
coreblas_error(2, "illegal value of trans");
return -2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment