init.c: mark wlan_task as noreturn
authorOleksij Rempel <linux@rempel-privat.de>
Mon, 28 Apr 2014 14:59:37 +0000 (16:59 +0200)
committerOleksij Rempel <linux@rempel-privat.de>
Fri, 23 May 2014 16:30:26 +0000 (18:30 +0200)
and remove break state from the loop. It will never jump to flash.

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
target_firmware/magpie_fw_dev/target/init/init.c
target_firmware/magpie_fw_dev/target/init/init.h

index 3554656a7616b53ac829f9f03f90906d631a9676..ba364471efeac8b9b5335ff6dd91a0eb6fcafdc8 100755 (executable)
@@ -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();
 
index 3e329b48ae929151424b5734ddf5a1693eab8f4b..e346bd2e54e505a1c09c0d4645558ebf83e28da1 100644 (file)
@@ -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();