From: Oleksij Rempel Date: Mon, 28 Apr 2014 14:59:37 +0000 (+0200) Subject: init.c: mark wlan_task as noreturn X-Git-Tag: 1.4.0~6^2~12 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=bd92fb2ea801ae1783caaea88d45f9eb26f67d2f;p=open-ath9k-htc-firmware.git init.c: mark wlan_task as noreturn and remove break state from the loop. It will never jump to flash. Signed-off-by: Oleksij Rempel --- diff --git a/target_firmware/magpie_fw_dev/target/init/init.c b/target_firmware/magpie_fw_dev/target/init/init.c index 3554656..ba36447 100755 --- a/target_firmware/magpie_fw_dev/target/init/init.c +++ b/target_firmware/magpie_fw_dev/target/init/init.c @@ -355,18 +355,11 @@ static void idle_task() return; } -void wlan_task(void) +void __noreturn wlan_task(void) { loop_low=loop_high=0; while(1) { -#if defined(PROJECT_MAGPIE) - if (bJumptoFlash){ - bJumptoFlash = FALSE; - break; - } -#endif - /* update wdt timer */ A_WDT_TASK(); diff --git a/target_firmware/magpie_fw_dev/target/init/init.h b/target_firmware/magpie_fw_dev/target/init/init.h index 3e329b4..e346bd2 100644 --- a/target_firmware/magpie_fw_dev/target/init/init.h +++ b/target_firmware/magpie_fw_dev/target/init/init.h @@ -68,4 +68,4 @@ extern void _fw_usb_reset_fifo(void); void fatal_exception_func(); void init_mem(); -void wlan_task(); +void __noreturn wlan_task();