tree 57adf80a6e63d189da1edb32be3fff186f76bc7f
parent 8724a118031a4eb62174b3e12745e4d35d4b03fe
author Andrew Morton <[EMAIL PROTECTED]> Tue, 21 Jun 2005 04:30:36 -0700
committer Jeff Garzik <[EMAIL PROTECTED]> Tue, 28 Jun 2005 07:28:35 -0400

[PATCH] ipw2100 old gcc fix

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 <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>

 drivers/net/wireless/ipw2100.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/ipw2100.c b/drivers/net/wireless/ipw2100.c
--- a/drivers/net/wireless/ipw2100.c
+++ b/drivers/net/wireless/ipw2100.c
@@ -5305,7 +5305,7 @@ static int ipw2100_set_key_index(struct 
                .host_command = WEP_KEY_INDEX,
                .host_command_sequence = 0,
                .host_command_length = 4,
-               .host_command_parameters[0] = idx,
+               .host_command_parameters = { idx },
        };
        int err;
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to