drivers: Led: Do not initialize twice

This commit is contained in:
José Roberto de Souza 2017-02-13 13:51:02 -08:00 committed by Lorenz Meier
parent d66d7a4932
commit 83a387a553

View File

@ -139,9 +139,5 @@ drv_led_start(void)
{
if (gLED == nullptr) {
gLED = new LED;
if (gLED != nullptr) {
gLED->init();
}
}
}