OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce1a788
)
i2c: acpi: remove unneeded variable initialization
author
Wolfram Sang
<wsa@the-dreams.de>
Tue, 18 Nov 2014 14:12:43 +0000
(15:12 +0100)
committer
Wolfram Sang
<wsa@the-dreams.de>
Tue, 18 Nov 2014 15:03:05 +0000
(16:03 +0100)
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>
drivers/i2c/i2c-core.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/i2c-core.c
b/drivers/i2c/i2c-core.c
index
cf83091
..
3105bd2
100644
(file)
--- 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);