Skip to contentSkip to conversation

Cyclades assignment warning

PATCH New Geert Uytterhoeven 1 participant 1 message Oct 24, 2004 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Cyclades assignment warning

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

drivers/char/cyclades.c renamed from drivers/char/cyclades.c.orig +1 -1
@@ -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 -- [email protected]

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