* [PATCH -next] leds: pca9532 - simplify the return expression of pca9532_remove
@ 2020-09-19 10:08 Liu Shixin
2020-09-19 10:24 ` Pavel Machek
0 siblings, 1 reply; 2+ messages in thread
From: Liu Shixin @ 2020-09-19 10:08 UTC (permalink / raw
To: Riku Voipio, Pavel Machek, Dan Murphy
Cc: linux-leds, linux-kernel, Liu Shixin
Simplify the return expression.
Signed-off-by: Liu Shixin <liushixin2@huawei.com>
---
drivers/leds/leds-pca9532.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/leds/leds-pca9532.c b/drivers/leds/leds-pca9532.c
index 7d515d5e57bd..88d2edf285c2 100644
--- 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);
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH -next] leds: pca9532 - simplify the return expression of pca9532_remove
2020-09-19 10:08 [PATCH -next] leds: pca9532 - simplify the return expression of pca9532_remove Liu Shixin
@ 2020-09-19 10:24 ` Pavel Machek
0 siblings, 0 replies; 2+ messages in thread
From: Pavel Machek @ 2020-09-19 10:24 UTC (permalink / raw
To: Liu Shixin; +Cc: Riku Voipio, Dan Murphy, linux-leds, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 256 bytes --]
On Sat 2020-09-19 18:08:53, Liu Shixin wrote:
> Simplify the return expression.
Thanks, applied.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-09-19 10:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-19 10:08 [PATCH -next] leds: pca9532 - simplify the return expression of pca9532_remove Liu Shixin
2020-09-19 10:24 ` Pavel Machek
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.