Skip to content

Commit f703f87

Browse files
committed
LAPACKE: remove unnecessary assignments to info in ?lantr_work
1 parent ade62b0 commit f703f87

File tree

4 files changed

+0
-16
lines changed

4 files changed

+0
-16
lines changed

LAPACKE/src/lapacke_clantr_work.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ float LAPACKE_clantr_work( int matrix_layout, char norm, char uplo,
4343
if( matrix_layout == LAPACK_COL_MAJOR ) {
4444
/* Call LAPACK function and adjust info */
4545
res = LAPACK_clantr( &norm, &uplo, &diag, &m, &n, a, &lda, work );
46-
if( info < 0 ) {
47-
info = info - 1;
48-
}
4946
} else if( matrix_layout == LAPACK_ROW_MAJOR ) {
5047
lapack_int lda_t = MAX(1,m);
5148
lapack_complex_float* a_t = NULL;
@@ -75,7 +72,6 @@ float LAPACKE_clantr_work( int matrix_layout, char norm, char uplo,
7572
LAPACKE_ctr_trans( matrix_layout, uplo, diag, MAX(m,n), a, lda, a_t, lda_t );
7673
/* Call LAPACK function and adjust info */
7774
res = LAPACK_clantr( &norm, &uplo, &diag, &m, &n, a_t, &lda_t, work_lapack );
78-
info = 0; /* LAPACK call is ok! */
7975
/* Release memory and exit */
8076
if( work_lapack ) {
8177
LAPACKE_free( work_lapack );

LAPACKE/src/lapacke_dlantr_work.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ double LAPACKE_dlantr_work( int matrix_layout, char norm, char uplo,
4242
if( matrix_layout == LAPACK_COL_MAJOR ) {
4343
/* Call LAPACK function and adjust info */
4444
res = LAPACK_dlantr( &norm, &uplo, &diag, &m, &n, a, &lda, work );
45-
if( info < 0 ) {
46-
info = info - 1;
47-
}
4845
} else if( matrix_layout == LAPACK_ROW_MAJOR ) {
4946
lapack_int lda_t = MAX(1,m);
5047
double* a_t = NULL;
@@ -73,7 +70,6 @@ double LAPACKE_dlantr_work( int matrix_layout, char norm, char uplo,
7370
LAPACKE_dtr_trans( matrix_layout, uplo, diag, MAX(m,n), a, lda, a_t, lda_t );
7471
/* Call LAPACK function and adjust info */
7572
res = LAPACK_dlantr( &norm, &uplo, &diag, &m, &n, a_t, &lda_t, work_lapack );
76-
info = 0; /* LAPACK call is ok! */
7773
/* Release memory and exit */
7874
if( work_lapack ) {
7975
LAPACKE_free( work_lapack );

LAPACKE/src/lapacke_slantr_work.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ float LAPACKE_slantr_work( int matrix_layout, char norm, char uplo,
4242
if( matrix_layout == LAPACK_COL_MAJOR ) {
4343
/* Call LAPACK function and adjust info */
4444
res = LAPACK_slantr( &norm, &uplo, &diag, &m, &n, a, &lda, work );
45-
if( info < 0 ) {
46-
info = info - 1;
47-
}
4845
} else if( matrix_layout == LAPACK_ROW_MAJOR ) {
4946
lapack_int lda_t = MAX(1,m);
5047
float* a_t = NULL;
@@ -73,7 +70,6 @@ float LAPACKE_slantr_work( int matrix_layout, char norm, char uplo,
7370
LAPACKE_str_trans( matrix_layout, uplo, diag, MAX(m,n), a, lda, a_t, lda_t );
7471
/* Call LAPACK function and adjust info */
7572
res = LAPACK_slantr( &norm, &uplo, &diag, &m, &n, a_t, &lda_t, work_lapack );
76-
info = 0; /* LAPACK call is ok! */
7773
/* Release memory and exit */
7874
if( work_lapack ) {
7975
LAPACKE_free( work_lapack );

LAPACKE/src/lapacke_zlantr_work.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ double LAPACKE_zlantr_work( int matrix_layout, char norm, char uplo,
4343
if( matrix_layout == LAPACK_COL_MAJOR ) {
4444
/* Call LAPACK function and adjust info */
4545
res = LAPACK_zlantr( &norm, &uplo, &diag, &m, &n, a, &lda, work );
46-
if( info < 0 ) {
47-
info = info - 1;
48-
}
4946
} else if( matrix_layout == LAPACK_ROW_MAJOR ) {
5047
lapack_int lda_t = MAX(1,m);
5148
lapack_complex_double* a_t = NULL;
@@ -75,7 +72,6 @@ double LAPACKE_zlantr_work( int matrix_layout, char norm, char uplo,
7572
LAPACKE_ztr_trans( matrix_layout, uplo, diag, MAX(m,n), a, lda, a_t, lda_t );
7673
/* Call LAPACK function and adjust info */
7774
res = LAPACK_zlantr( &norm, &uplo, &diag, &m, &n, a_t, &lda_t, work_lapack );
78-
info = 0; /* LAPACK call is ok! */
7975
/* Release memory and exit */
8076
if( work_lapack ) {
8177
LAPACKE_free( work_lapack );

0 commit comments

Comments
 (0)