[PATCH] ipw2100 old gcc fix
authorAndrew Morton <akpm@osdl.org>
Mon, 20 Jun 2005 21:30:36 +0000 (14:30 -0700)
committerJeff Garzik <jgarzik@pobox.com>
Tue, 28 Jun 2005 03:28:35 +0000 (23:28 -0400)
drivers/net/wireless/ipw2100.c: In function `ipw2100_set_key_index':
drivers/net/wireless/ipw2100.c:5326: array index in non-array initializer
drivers/net/wireless/ipw2100.c:5326: (near initialization for `cmd')
drivers/net/wireless/ipw2100.c:5326: warning: missing braces around initializer
drivers/net/wireless/ipw2100.c:5326: warning: (near initialization for `cmd.host_command_parameters')

Cc: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
drivers/net/wireless/ipw2100.c

index 62f2935246bb4b81cdf86238235cc71c6d197e6e..09cc5fdd290ac38eb60e5f051eb636ab07d8580a 100644 (file)
@@ -5305,7 +5305,7 @@ static int ipw2100_set_key_index(struct ipw2100_priv *priv,
                .host_command = WEP_KEY_INDEX,
                .host_command_sequence = 0,
                .host_command_length = 4,
-               .host_command_parameters[0] = idx,
+               .host_command_parameters = { idx },
        };
        int err;