OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f68c0a8
)
mfd: htc-i2cpld: Drop check because i2c_unregister_device() is NULL safe
author
Wolfram Sang
<wsa+renesas@sang-engineering.com>
Tue, 20 Aug 2019 15:34:43 +0000
(17:34 +0200)
committer
Lee Jones
<lee.jones@linaro.org>
Mon, 2 Sep 2019 10:09:03 +0000
(11:09 +0100)
No need to check the argument of i2c_unregister_device() because the
function itself does it.
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/htc-i2cpld.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/htc-i2cpld.c
b/drivers/mfd/htc-i2cpld.c
index
370519a
..
8ad6768
100644
(file)
--- a/
drivers/mfd/htc-i2cpld.c
+++ b/
drivers/mfd/htc-i2cpld.c
@@
-385,8
+385,7
@@
static void htcpld_unregister_chip_i2c(
htcpld = platform_get_drvdata(pdev);
chip = &htcpld->chip[chip_index];
- if (chip->client)
- i2c_unregister_device(chip->client);
+ i2c_unregister_device(chip->client);
}
static int htcpld_register_chip_gpio(