leds: tca6507: silence an uninitialized variable warning
commit4a91c45ea57c4974c797b89dfed19e946a774787
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 14 Apr 2016 09:36:16 +0000 (14 12:36 +0300)
committerJacek Anaszewski <j.anaszewski@samsung.com>
Thu, 14 Apr 2016 11:08:58 +0000 (14 13:08 +0200)
tree37863107e8c55cda5c4b9ef44bc994fefb9aae58
parentfea728c098ee1e6a4a2855962390487ee5d1cdc2
leds: tca6507: silence an uninitialized variable warning

If choose_times() returns -EINVAL that means "c1" and "c2" haven't been
initialized.  I've added a check for that.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
drivers/leds/leds-tca6507.c