drm/amdgpu: Delete an unnecessary variable initialisation in amdgpu_cgs_acpi_eval_obj...
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 16 Jul 2016 12:54:12 +0000 (14:54 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 29 Jul 2016 18:36:53 +0000 (14:36 -0400)
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c

index 7a41e64c1d9486fdddc54af4070905307c3d2ca2..f88e82a989d9125975bb924ed83a0a257a1b6748 100644 (file)
@@ -917,7 +917,7 @@ static int amdgpu_cgs_acpi_eval_object(struct cgs_device *cgs_device,
        struct acpi_buffer output = { ACPI_ALLOCATE_BUFFER, NULL };
        union acpi_object *params, *obj;
        uint8_t name[5] = {'\0'};
-       struct cgs_acpi_method_argument *argument = NULL;
+       struct cgs_acpi_method_argument *argument;
        uint32_t i, count;
        acpi_status status;
        int result = 0;