Commit c4241abc authored by Liu Shixin's avatar Liu Shixin Committed by Pavel Machek

leds: pca9532 - simplify the return expression of pca9532_remove

Simplify the return expression.
Signed-off-by: default avatarLiu Shixin <liushixin2@huawei.com>
Signed-off-by: default avatarPavel Machek <pavel@ucw.cz>
parent f847ef54
...@@ -545,13 +545,8 @@ static int pca9532_probe(struct i2c_client *client, ...@@ -545,13 +545,8 @@ static int pca9532_probe(struct i2c_client *client,
static int pca9532_remove(struct i2c_client *client) static int pca9532_remove(struct i2c_client *client)
{ {
struct pca9532_data *data = i2c_get_clientdata(client); struct pca9532_data *data = i2c_get_clientdata(client);
int err;
err = pca9532_destroy_devices(data, data->chip_info->num_leds); return pca9532_destroy_devices(data, data->chip_info->num_leds);
if (err)
return err;
return 0;
} }
module_i2c_driver(pca9532_driver); module_i2c_driver(pca9532_driver);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment