From 1501cb328d482ab3f1ae66ddc1226eeec04a1c7a Mon Sep 17 00:00:00 2001 From: Jeremy L Thompson Date: Fri, 10 Dec 2021 14:27:26 -0700 Subject: [PATCH] style - minor --- backends/cuda/ceed-cuda-qfunctioncontext.c | 4 ++-- backends/hip/ceed-hip-qfunctioncontext.c | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/backends/cuda/ceed-cuda-qfunctioncontext.c b/backends/cuda/ceed-cuda-qfunctioncontext.c index 88439fc112..d540d9730f 100644 --- a/backends/cuda/ceed-cuda-qfunctioncontext.c +++ b/backends/cuda/ceed-cuda-qfunctioncontext.c @@ -88,8 +88,8 @@ static inline int CeedQFunctionContextSyncD2H_Cuda( //------------------------------------------------------------------------------ // Sync data of type //------------------------------------------------------------------------------ -static inline int CeedQFunctionContextSync_Cuda(const CeedQFunctionContext ctx, - CeedMemType mtype) { +static inline int CeedQFunctionContextSync_Cuda( + const CeedQFunctionContext ctx, CeedMemType mtype) { switch (mtype) { case CEED_MEM_HOST: return CeedQFunctionContextSyncD2H_Cuda(ctx); case CEED_MEM_DEVICE: return CeedQFunctionContextSyncH2D_Cuda(ctx); diff --git a/backends/hip/ceed-hip-qfunctioncontext.c b/backends/hip/ceed-hip-qfunctioncontext.c index 7246788c1e..701e6058b8 100644 --- a/backends/hip/ceed-hip-qfunctioncontext.c +++ b/backends/hip/ceed-hip-qfunctioncontext.c @@ -128,9 +128,8 @@ static inline int CeedQFunctionContextIsAllStale_Hip( //------------------------------------------------------------------------------ // Check if data of given type needs sync //------------------------------------------------------------------------------ -static inline int CeedQFunctionContextNeedSync_Hip(const CeedQFunctionContext - ctx, - CeedMemType mtype, bool *need_sync) { +static inline int CeedQFunctionContextNeedSync_Hip( + const CeedQFunctionContext ctx, CeedMemType mtype, bool *need_sync) { int ierr; CeedQFunctionContext_Hip *data; ierr = CeedQFunctionContextGetBackendData(ctx, &data); CeedChkBackend(ierr);