[PATCH] Cyclades assignment warning

From: Geert Uytterhoeven
Date: Sun Oct 24 2004 - 06:12:48 EST



Cyclades: Remove unneeded cast that causes a warning (cy_isa_addresses is an
array of unsigned ints).

--- linux-2.6.10-rc1/drivers/char/cyclades.c.orig 2004-10-23 10:33:00.000000000 +0200
+++ linux-2.6.10-rc1/drivers/char/cyclades.c 2004-10-24 12:47:52.000000000 +0200
@@ -5551,7 +5551,7 @@ cy_setup(char *str, int *ints)
}
for (j = 1; j <= ints[0]; j++){
if ( i < NR_ISA_ADDRS ){
- cy_isa_addresses[i++] = (unsigned char *)(ints[j]);
+ cy_isa_addresses[i++] = ints[j];
}
}
#endif /* CONFIG_ISA */

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/