From 618997f0b34960f18b524b413d079b7ee84d7f72 Mon Sep 17 00:00:00 2001 From: Matthias Gerstner Date: Wed, 3 Apr 2019 16:18:36 +0200 Subject: [PATCH] gpuclockctl: fix return value of get_gpu_state_amd() --- daemon/gpuclockctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/gpuclockctl.c b/daemon/gpuclockctl.c index 73c17c5..8598a9f 100644 --- a/daemon/gpuclockctl.c +++ b/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; } /*