src/topology.c: Fix NULL check

Now that HsaNodeProperties is passed in to
topology_get_node_props_from_drm, check that pointer instead of the
pointer for MarketingName (which throws a compiler warning)

Signed-off-by: kent.russell@amd.com <kent.russell@amd.com>
Change-Id: If76b24e1bab5a62e514ab440b6316c7b7cd264c1
Этот коммит содержится в:
kent.russell@amd.com
2022-08-29 08:56:41 -04:00
родитель 66e9e97e0d
Коммит ea4d4917c1
+1 -1
Просмотреть файл
@@ -1014,7 +1014,7 @@ static int topology_get_node_props_from_drm(HsaNodeProperties *props)
const char *name;
int i, ret = 0;
if (props->MarketingName == NULL)
if (props == NULL)
return -1;
drm_fd = drmOpenRender(props->DrmRenderMinor);