tiny68k: dont push a swapmap 0
authorAlan Cox <alan@linux.intel.com>
Sat, 19 Jan 2019 19:57:21 +0000 (19:57 +0000)
committerAlan Cox <alan@linux.intel.com>
Sat, 19 Jan 2019 19:57:21 +0000 (19:57 +0000)
Kernel/platform-tiny68k/main.c

index a99ab88..e91de50 100644 (file)
@@ -78,7 +78,7 @@ void platform_swap_found(uint8_t letter, uint8_t m)
                n = MAX_SWAPS;
 #ifdef SWAPDEV
        while (n)
-               swapmap_init(--n);
+               swapmap_init(n--);
 #endif
 }
 /* Live udata and kernel stack */