mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
leds: pca9532 - simplify the return expression of pca9532_remove
Simplify the return expression. Signed-off-by: Liu Shixin <liushixin2@huawei.com> Signed-off-by: Pavel Machek <pavel@ucw.cz>
This commit is contained in:
parent
f847ef543c
commit
c4241abcd5
1 changed files with 1 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue