Chore: code cleanups

This commit is contained in:
李通洲
2025-06-19 22:41:30 +08:00
parent 3291a9945f
commit b079a8643b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -147,7 +147,7 @@ static const char* detectByDrm(const FFGPUOptions* options, FFlist* gpus)
static const char* detectByPci(const FFGPUOptions* options, FFlist* gpus)
{
FF_AUTO_CLOSE_FD int fd = open("/dev/pci", O_RDONLY | O_CLOEXEC, 0);
FF_AUTO_CLOSE_FD int fd = open("/dev/pci", O_RDONLY | O_CLOEXEC);
if (fd < 0)
return "open(\"/dev/pci\", O_RDONLY | O_CLOEXEC, 0) failed";