From 1427e4bef43334e8f0ed700aa4f0e55af4df50c5 Mon Sep 17 00:00:00 2001 From: Larry Ruckman Date: Fri, 28 Jun 2024 13:52:25 -0700 Subject: [PATCH] resolving c++ linter ### Description Weird number of spaces at line-start. Are you using a 2-space indent? [whitespace/indent] --- include/DmaDriver.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/DmaDriver.h b/include/DmaDriver.h index e1da0b9..8ab200a 100755 --- a/include/DmaDriver.h +++ b/include/DmaDriver.h @@ -644,12 +644,12 @@ static inline ssize_t dmaGetBuffCount(int32_t fd) { * Returns: The DMA Driver's Git Version string */ static inline std::string dmaGetGitVersion(int32_t fd) { - char gitv[32] = {0}; // Initialize with zeros to ensure null-termination - if (ioctl(fd, DMA_Get_GITV, gitv) < 0) { + char gitv[32] = {0}; // Initialize with zeros to ensure null-termination + if (ioctl(fd, DMA_Get_GITV, gitv) < 0) { return ""; - } - gitv[32 - 1] = '\0'; // Ensure null-termination - return std::string(gitv); + } + gitv[32 - 1] = '\0'; // Ensure null-termination + return std::string(gitv); } /**