]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: greybus: light: remove unnecessary error check
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Sat, 23 Sep 2017 08:09:15 +0000 (13:39 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Sep 2017 13:39:22 +0000 (15:39 +0200)
commit1cd5929ab675b285e2179ec33cb0fef185aaabd1
tree8893aacc8ddec459fac536d6678e618e80aebaba
parent04820da21050b35eed68aa046115d810163ead0c
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>
drivers/staging/greybus/light.c