projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f847ef5
)
leds: pca9532 - simplify the return expression of pca9532_remove
author
Liu Shixin
<liushixin2@huawei.com>
Sat, 19 Sep 2020 10:08:53 +0000
(18:08 +0800)
committer
Pavel Machek
<pavel@ucw.cz>
Sat, 26 Sep 2020 19:56:42 +0000
(21:56 +0200)
Simplify the return expression.
Signed-off-by: Liu Shixin <liushixin2@huawei.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/leds-pca9532.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/leds/leds-pca9532.c
b/drivers/leds/leds-pca9532.c
index f834550999ddb4fb6a2553aa36461f3cee9625fc..41229f775d356e311f48be5326ced9a53a71089c 100644
(file)
--- a/
drivers/leds/leds-pca9532.c
+++ b/
drivers/leds/leds-pca9532.c
@@
-545,13
+545,8
@@
static int pca9532_probe(struct i2c_client *client,
static int pca9532_remove(struct i2c_client *client)
{
struct pca9532_data *data = i2c_get_clientdata(client);
- int err;
- err = pca9532_destroy_devices(data, data->chip_info->num_leds);
- if (err)
- return err;
-
- return 0;
+ return pca9532_destroy_devices(data, data->chip_info->num_leds);
}
module_i2c_driver(pca9532_driver);