diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3505-drm-amdgpu-powerplay-remove-redundant-assignment-to-.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3505-drm-amdgpu-powerplay-remove-redundant-assignment-to-.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3505-drm-amdgpu-powerplay-remove-redundant-assignment-to-.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3505-drm-amdgpu-powerplay-remove-redundant-assignment-to-.patch new file mode 100644 index 00000000..46ec1a2a --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3505-drm-amdgpu-powerplay-remove-redundant-assignment-to-.patch @@ -0,0 +1,32 @@ +From 1c743ecb2edbb3f664bbf42d713390f9d2eca757 Mon Sep 17 00:00:00 2001 +From: Colin Ian King <colin.king@canonical.com> +Date: Thu, 22 Aug 2019 14:09:48 +0100 +Subject: [PATCH 3505/4256] drm/amdgpu/powerplay: remove redundant assignment + to variable baco_state + +Variable baco_state is initialized to a value that is never read and it is +re-assigned later. The initialization is redundant and can be removed. + +Addresses-Coverity: ("Unused Value") +Signed-off-by: Colin Ian King <colin.king@canonical.com> +Signed-off-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/drivers/gpu/drm/amd/powerplay/smu_v11_0.c b/drivers/gpu/drm/amd/powerplay/smu_v11_0.c +index f5efe8b5e96c..62bfde0ab0ee 100644 +--- a/drivers/gpu/drm/amd/powerplay/smu_v11_0.c ++++ b/drivers/gpu/drm/amd/powerplay/smu_v11_0.c +@@ -1672,7 +1672,7 @@ static bool smu_v11_0_baco_is_support(struct smu_context *smu) + static enum smu_baco_state smu_v11_0_baco_get_state(struct smu_context *smu) + { + struct smu_baco_context *smu_baco = &smu->smu_baco; +- enum smu_baco_state baco_state = SMU_BACO_STATE_EXIT; ++ enum smu_baco_state baco_state; + + mutex_lock(&smu_baco->mutex); + baco_state = smu_baco->state; +-- +2.17.1 + |