Chore: uses elvis operators where applicatable

This commit is contained in:
李通洲
2026-01-22 09:06:23 +08:00
committed by Carter Li
parent 8f082730a8
commit c116a5abdf
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -560,7 +560,7 @@ static const char* detectOf(FFlist* gpus, FFstrbuf* buffer, FFstrbuf* drmDir, co
if (!gpu->name.length)
{
ffStrbufSetS(&gpu->name, name ? name : compatible);
ffStrbufSetS(&gpu->name, name ?: compatible);
ffStrbufTrimRightSpace(&gpu->name);
}
if (!gpu->vendor.length && name)