[PATCH] arch/i386/kernel/traps.c warning

Geert Uytterhoeven (geert@linux-m68k.org)
Sun, 15 Jun 2003 18:29:09 +0200 (MEST)


Kill warning about unused variable (untested)

--- linux-2.5.71/arch/i386/kernel/traps.c.orig Tue May 27 19:02:31 2003
+++ linux-2.5.71/arch/i386/kernel/traps.c Wed Jun 11 10:22:22 2003
@@ -94,7 +94,6 @@

void show_trace(unsigned long * stack)
{
- int i;
unsigned long addr;

if (!stack)
@@ -104,7 +103,6 @@
#ifdef CONFIG_KALLSYMS
printk("\n");
#endif
- i = 1;
while (((long) stack & (THREAD_SIZE-1)) != 0) {
addr = *stack++;
if (kernel_text_address(addr)) {

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/