diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2014-11-18 15:12:43 +0100 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2014-11-18 16:03:05 +0100 |
commit | 4470c725ba7b86481c31466640ab487f927de6b7 (patch) | |
tree | fffb3aebf928eeb11b65774159014b127a81587b /drivers/i2c/i2c-core.c | |
parent | ce1a78840ff7ab846065d5b65eaac959bafe1949 (diff) |
i2c: acpi: remove unneeded variable initialization
No need to initialize 'ret' if it gets assigned directly after that.
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers/i2c/i2c-core.c')
-rw-r--r-- | drivers/i2c/i2c-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |