leds: pca9532 - simplify the return expression of pca9532_remove
Subsystems (2)
PATCH 1/1 leds: pca9532 - simplify the return expression of pca9532_remove
Simplify the return expression.
Signed-off-by Liu Shixin <[email protected]>
--- drivers/leds/leds-pca9532.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
drivers/leds/leds-pca9532.c +1 -6
@@ -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);
Signature · 1 line
2.25.1
Pavel Machek
AppliedQuoted 1 line · Liu Shixin
Simplify the return expression.
Thanks, applied.
Pavel
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html