[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5a7d8d95-0167-2bdc-784f-e1df6e49ad2b@users.sourceforge.net>
Date: Sat, 16 Jul 2016 17:05:41 +0200
From: SF Markus Elfring <elfring@...rs.sourceforge.net>
To: dri-devel@...ts.freedesktop.org, David Airlie <airlied@...ux.ie>,
Christian König <christian.koenig@....com>,
Alex Deucher <alexander.deucher@....com>
Cc: LKML <linux-kernel@...r.kernel.org>,
kernel-janitors@...r.kernel.org,
Julia Lawall <julia.lawall@...6.fr>
Subject: [PATCH 6/8] drm/amdgpu: Change assignment for a variable in
amdgpu_cgs_acpi_eval_object()
From: Markus Elfring <elfring@...rs.sourceforge.net>
Date: Sat, 16 Jul 2016 15:05:45 +0200
Indicate successful function execution only at the end.
Thus omit initialisation for the variable "result" at the beginning.
Signed-off-by: Markus Elfring <elfring@...rs.sourceforge.net>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
index 47f2a43..57859bd 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
@@ -908,7 +908,7 @@ static int amdgpu_cgs_acpi_eval_object(struct cgs_device *cgs_device,
struct cgs_acpi_method_argument *argument;
uint32_t i, count;
acpi_status status;
- int result = 0;
+ int result;
handle = ACPI_HANDLE(&adev->pdev->dev);
if (!handle)
@@ -1049,6 +1049,7 @@ static int amdgpu_cgs_acpi_eval_object(struct cgs_device *cgs_device,
params++;
}
+ result = 0;
free_obj:
kfree(obj);
free_input:
--
2.9.1
Powered by blists - more mailing lists