mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-30 02:31:44 +00:00
Fix clang-tidy warnings (#4359)
The warnings included recommendations of braces for if statement readability, a recommendation for default initialization of an int array, and include-what-you-use (indirectly through clang-tidy reporting undefined symbols).
This commit is contained in:
@@ -130,8 +130,9 @@ void HAL_FreeDMA(HAL_DMAHandle handle) {
|
||||
auto dma = dmaHandles->Get(handle);
|
||||
dmaHandles->Free(handle);
|
||||
|
||||
if (!dma)
|
||||
if (!dma) {
|
||||
return;
|
||||
}
|
||||
|
||||
int32_t status = 0;
|
||||
if (dma->manager) {
|
||||
|
||||
Reference in New Issue
Block a user