From: Liu Shixin Date: Sat, 19 Sep 2020 10:08:53 +0000 (+0800) Subject: leds: pca9532 - simplify the return expression of pca9532_remove X-Git-Tag: v5.15~2683^2~36 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c4241abcd50019adafb11d8aa8269d242c4f42b4;p=platform%2Fkernel%2Flinux-starfive.git leds: pca9532 - simplify the return expression of pca9532_remove Simplify the return expression. Signed-off-by: Liu Shixin Signed-off-by: Pavel Machek --- diff --git a/drivers/leds/leds-pca9532.c b/drivers/leds/leds-pca9532.c index f834550..41229f7 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);