From: Wolfram Sang Date: Tue, 18 Nov 2014 14:12:43 +0000 (+0100) Subject: i2c: acpi: remove unneeded variable initialization X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4470c725ba7b86481c31466640ab487f927de6b7;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git i2c: acpi: remove unneeded variable initialization No need to initialize 'ret' if it gets assigned directly after that. Signed-off-by: Wolfram Sang Acked-by: Mika Westerberg --- diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c index cf830915713b..3105bd273f70 100644 --- a/drivers/i2c/i2c-core.c +++ b/drivers/i2c/i2c-core.c @@ -260,7 +260,7 @@ acpi_i2c_space_handler(u32 function, acpi_physical_address command, struct acpi_resource *ares; u32 accessor_type = function >> 16; u8 action = function & ACPI_IO_MASK; - acpi_status ret = AE_OK; + acpi_status ret; int status; ret = acpi_buffer_to_resource(info->connection, info->length, &ares);