Skip to content

Commit 178eae8

Browse files
authored
Maintenance: Remove unreachable code (duplicated return statements) (#896)
This change removes unreachable `return` statements. Signed-off-by: vil02 <65706193+vil02@users.noreply.github.com>
1 parent 00da703 commit 178eae8

2 files changed

Lines changed: 0 additions & 2 deletions

File tree

src/nvector/raja/nvector_raja.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1858,7 +1858,6 @@ static int FusedBuffer_CopyPtrArray1D(N_Vector v, N_Vector* X, int nvec,
18581858
SUNDIALS_DEBUG_PRINT("ERROR in FusedBuffer_CopyPtrArray1D: Buffer offset "
18591859
"is exceedes the buffer size\n");
18601860
return SUN_ERR_GENERIC;
1861-
return SUN_ERR_GENERIC;
18621861
}
18631862

18641863
sunrealtype** h_buffer = (sunrealtype**)((char*)(vcp->fused_buffer_host->ptr) +

src/nvector/sycl/nvector_sycl.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2307,7 +2307,6 @@ static int FusedBuffer_CopyPtrArray1D(N_Vector v, N_Vector* X, int nvec,
23072307
SUNDIALS_DEBUG_PRINT("ERROR in FusedBuffer_CopyPtrArray1D: Buffer offset "
23082308
"is exceedes the buffer size\n");
23092309
return SUN_ERR_GENERIC;
2310-
return SUN_ERR_GENERIC;
23112310
}
23122311

23132312
sunrealtype** h_buffer = reinterpret_cast<sunrealtype**>(

0 commit comments

Comments
 (0)