Skip to content

Commit b079a86

Browse files
committed
Chore: code cleanups
1 parent 3291a99 commit b079a86

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/detection/gpu/gpu_bsd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ static const char* detectByDrm(const FFGPUOptions* options, FFlist* gpus)
147147

148148
static const char* detectByPci(const FFGPUOptions* options, FFlist* gpus)
149149
{
150-
FF_AUTO_CLOSE_FD int fd = open("/dev/pci", O_RDONLY | O_CLOEXEC, 0);
150+
FF_AUTO_CLOSE_FD int fd = open("/dev/pci", O_RDONLY | O_CLOEXEC);
151151
if (fd < 0)
152152
return "open(\"/dev/pci\", O_RDONLY | O_CLOEXEC, 0) failed";
153153

src/util/binary_linux.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const char* ffBinaryExtractStrings(const char* elfFile, bool (*cb)(const char* s
6363
return "load libelf failed";
6464

6565
// Open the ELF file
66-
FF_AUTO_CLOSE_FD int fd = open(elfFile, O_RDONLY | O_CLOEXEC, 0);
66+
FF_AUTO_CLOSE_FD int fd = open(elfFile, O_RDONLY | O_CLOEXEC);
6767
if (fd < 0) return "open() failed";
6868

6969
Elf* elf = elfData.ffelf_begin(fd, ELF_C_READ, NULL);

0 commit comments

Comments
 (0)