Browse Source

gpuclockctl: fix return value of get_gpu_state_amd()

Matthias Gerstner 6 years ago
parent
commit
618997f0b3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      daemon/gpuclockctl.c

+ 1 - 1
daemon/gpuclockctl.c

@@ -303,7 +303,7 @@ static int get_gpu_state_amd(struct GameModeGPUInfo *info)
 	/* Copy in the value from the file */
 	strncpy(info->amd_performance_level, buff, CONFIG_VALUE_MAX - 1);
 	info->amd_performance_level[CONFIG_VALUE_MAX - 1] = '\0';
-	return info == NULL;
+	return 0;
 }
 
 /*