use inline for find_driver_for_device

This commit is contained in:
gengyue
2021-06-21 16:07:37 +08:00
parent 54a51ab02f
commit 8756b5de9f

View File

@@ -953,10 +953,7 @@ static void DRM_DeleteDevice(GAL_VideoDevice *device)
}
#ifdef __TARGET_PX30__
static char* find_driver_for_device (const char *dev_name)
{
return strdup ("rockchip");
}
static inline char* find_driver_for_device (const char *dev_name) { return strdup ("rockchip"); }
#else
static char* find_driver_for_device (const char *dev_name)
{