libhsakmt: Initialize fd to -1

Fix compile error due to warning in some environments

Change-Id: Ie5fcfabb872c27c0de349eb215345b997fae7201


[ROCm/ROCR-Runtime commit: f46ddb7ead]
Tá an tiomantas seo le fáil i:
David Yat Sin tiomanta 2022-11-25 15:01:53 +00:00
1 tuismitheoir ddaee6ccc6
tiomantas 0e7a4d8ace
1 comhad athraithe
+1 -1
+1 -1
Féach ar an gComhad
@@ -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);