diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2016-07-16 08:54:12 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-07-29 14:36:53 -0400 |
commit | eb09d7a7c956f8c0edcdcf4eeb96f953587cd16e (patch) | |
tree | 3f2aefcaaf321fbe47a725e249393fdaaca5e9f5 | |
parent | dffa6d4f8062667d5ff555ca3a3ebed13ba5647f (diff) |
drm/amdgpu: Delete an unnecessary variable initialisation in amdgpu_cgs_acpi_eval_object()
The variable "argument" will be set to an appropriate value a bit later.
Thus omit the explicit initialisation at the beginning.
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c index 7a41e64c1d94..f88e82a989d9 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c | |||
@@ -917,7 +917,7 @@ static int amdgpu_cgs_acpi_eval_object(struct cgs_device *cgs_device, | |||
917 | struct acpi_buffer output = { ACPI_ALLOCATE_BUFFER, NULL }; | 917 | struct acpi_buffer output = { ACPI_ALLOCATE_BUFFER, NULL }; |
918 | union acpi_object *params, *obj; | 918 | union acpi_object *params, *obj; |
919 | uint8_t name[5] = {'\0'}; | 919 | uint8_t name[5] = {'\0'}; |
920 | struct cgs_acpi_method_argument *argument = NULL; | 920 | struct cgs_acpi_method_argument *argument; |
921 | uint32_t i, count; | 921 | uint32_t i, count; |
922 | acpi_status status; | 922 | acpi_status status; |
923 | int result = 0; | 923 | int result = 0; |