Skip to content

Commit

Permalink
resolving c++ linter
Browse files Browse the repository at this point in the history
### Description
Weird number of spaces at line-start.  Are you using a 2-space indent?  [whitespace/indent]
  • Loading branch information
ruck314 authored Jun 28, 2024
1 parent d67e405 commit 1427e4b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/DmaDriver.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 1427e4b

Please sign in to comment.