aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
authorWolfram Sang <wsa@the-dreams.de>2014-11-18 09:12:43 -0500
committerWolfram Sang <wsa@the-dreams.de>2014-11-18 10:03:05 -0500
commit4470c725ba7b86481c31466640ab487f927de6b7 (patch)
treefffb3aebf928eeb11b65774159014b127a81587b /drivers/i2c
parentce1a78840ff7ab846065d5b65eaac959bafe1949 (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')
-rw-r--r--drivers/i2c/i2c-core.c2
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,
260 struct acpi_resource *ares; 260 struct acpi_resource *ares;
261 u32 accessor_type = function >> 16; 261 u32 accessor_type = function >> 16;
262 u8 action = function & ACPI_IO_MASK; 262 u8 action = function & ACPI_IO_MASK;
263 acpi_status ret = AE_OK; 263 acpi_status ret;
264 int status; 264 int status;
265 265
266 ret = acpi_buffer_to_resource(info->connection, info->length, &ares); 266 ret = acpi_buffer_to_resource(info->connection, info->length, &ares);