mirror of
https://github.com/torvalds/linux.git
synced 2024-12-24 20:01:55 +00:00
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:
parent
04820da210
commit
1cd5929ab6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user