libhsakmt: Initialize fd to -1
Fix compile error due to warning in some environments Change-Id: Ie5fcfabb872c27c0de349eb215345b997fae7201
Cette révision appartient à :
1 Parent
01fd84db5e
révision
f46ddb7ead
1 fichier modifié
+1
-1
@@ -141,7 +141,7 @@ static HSAKMT_STATUS init_vars_from_env(void)
|
||||
HSAKMT_STATUS HSAKMTAPI hsaKmtOpenKFD(void)
|
||||
{
|
||||
HSAKMT_STATUS result;
|
||||
int fd;
|
||||
int fd = -1;
|
||||
HsaSystemProperties sys_props;
|
||||
|
||||
pthread_mutex_lock(&hsakmt_mutex);
|
||||
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur