From 2fa716b3f523af0abb63d48f2fb7bbfb2e57cef3 Mon Sep 17 00:00:00 2001 From: Oleksij Rempel Date: Mon, 22 Apr 2013 17:03:58 +0200 Subject: [PATCH] remove useless checks in wlan_task Signed-off-by: Oleksij Rempel --- target_firmware/magpie_fw_dev/target/init/init.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/target_firmware/magpie_fw_dev/target/init/init.c b/target_firmware/magpie_fw_dev/target/init/init.c index 54885b2..b6e6a44 100755 --- a/target_firmware/magpie_fw_dev/target/init/init.c +++ b/target_firmware/magpie_fw_dev/target/init/init.c @@ -379,17 +379,9 @@ void wlan_task(void) A_TASKLET_RUN(); A_TIMER_RUN(); - /* Low priority tasks */ - if ((loop_low & 0xf) == 0) { - } - /* Very low priority tasks */ - if ((loop_low & 0xfff) == 0x7) { - if ((loop_low & 0x1000) == 0) { - A_DBG_TASK(); - } else { - } - } + if ((loop_low & 0x1fff) == 0x7) + A_DBG_TASK(); idle_task(); } -- 2.31.1