staging: greybus: light: remove unnecessary error check

It is not necessary to check return value of gb_lights_channel_flash_config.
gb_lights_channel_config returns both successful and error value.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Reviewed-by: Rui Miguel Silva <rmfrfs@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Arvind Yadav 2017-09-23 13:39:15 +05:30 committed by Greg Kroah-Hartman
parent 04820da210
commit 1cd5929ab6

View file

@ -1000,11 +1000,7 @@ static int gb_lights_channel_config(struct gb_light *light,
light->has_flash = true;
ret = gb_lights_channel_flash_config(channel);
if (ret < 0)
return ret;
return ret;
return gb_lights_channel_flash_config(channel);
}
static int gb_lights_light_config(struct gb_lights *glights, u8 id)