Skip to content

Commit

Permalink
i2c: acpi: remove unneeded variable initialization
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wolfram Sang committed Nov 18, 2014
1 parent ce1a788 commit 4470c72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/i2c/i2c-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4470c72

Please sign in to comment.