Run pre-commit's whitespace related hooks on projects/rocr-runtime (#2130)

* Run pre-commit's whitespace related hooks on projects/rocr-runtime

In order for pre-commit to be useful, everything needs to meet a common
baseline.

Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>

* Add missing semicolon which would block compilation on big endian CPUs

Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>

---------

Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>
This commit is contained in:
Mario Limonciello authored and GitHub committed 2025-12-08 07:56:50 -06:00
1 parent 3faf36fb25
commit bc5d48e76c
60 files changed
+300 -303

No files matched your search

@@ -213,18 +213,18 @@ namespace elf {
#else // _WIN32
int in = _open(filename.c_str(), O_RDONLY);
if (in < 0) { return perror("open failed"); }
if (_lseek(in, 0L, SEEK_END) < 0) {
if (_lseek(in, 0L, SEEK_END) < 0) {
_close(in);
return perror("lseek failed");
return perror("lseek failed");
}
off_t size;
if ((size = _lseek(in, 0L, SEEK_CUR)) < 0) {
if ((size = _lseek(in, 0L, SEEK_CUR)) < 0) {
_close(in);
return perror("lseek(2) failed");
return perror("lseek(2) failed");
}
if (_lseek(in, 0L, SEEK_SET) < 0) {
if (_lseek(in, 0L, SEEK_SET) < 0) {
_close(in);
return perror("lseek(3) failed");
return perror("lseek(3) failed");
}
if (_lseek(d, 0L, SEEK_SET) < 0) { return perror("lseek(3) failed"); }
ssize_t written;
@@ -283,7 +283,7 @@ namespace elf {
free(buffer1);
return perror("Incomplete read");
}
*buffer = buffer1;
if (size) { *size = size1; }
return true;