From ed854a38283de39c9a8a9689f9098cb7f0f0bed3 Mon Sep 17 00:00:00 2001 From: rusefi Date: Fri, 16 Aug 2019 22:01:32 -0400 Subject: [PATCH] refactoring --- firmware/hw_layer/drivers/gpio/tle8888.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/firmware/hw_layer/drivers/gpio/tle8888.c b/firmware/hw_layer/drivers/gpio/tle8888.c index 68e62056da..1442b9414e 100644 --- a/firmware/hw_layer/drivers/gpio/tle8888.c +++ b/firmware/hw_layer/drivers/gpio/tle8888.c @@ -265,13 +265,7 @@ static int tle8888_wake_driver(struct tle8888_priv *chip) /* Entering a reentrant critical zone.*/ syssts_t sts = chSysGetStatusAndLockX(); - if (isIsrContext()) { - // this is for normal runtime - chSemSignalI(&tle8888_wake); - } else { - // this is for start-up to not hang up - chSemSignalS(&tle8888_wake); - } + chSemSignalI(&tle8888_wake); /* Leaving the critical zone.*/ chSysRestoreStatusX(sts);