]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
drivers/net: static should be at beginning of declaration
authorJesper Juhl <jj@chaosbits.net>
Sat, 9 Jul 2011 21:24:43 +0000 (23:24 +0200)
committerJiri Kosina <jkosina@suse.cz>
Mon, 11 Jul 2011 12:16:25 +0000 (14:16 +0200)
Make sure that the 'static' keywork is at the beginning of declaration
for drivers/net/usb/kalmia.c

This gets rid of warnings like
  warning: â€˜static’ is not at beginning of declaration
when building with -Wold-style-declaration (and/or -Wextra which also
enables it).

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/net/usb/kalmia.c

index a9b6c63d54e4ed9ed7622781ae88d4b835807662..5a6d0f88f43b349b83d928a05ea875239d4d715b 100644 (file)
@@ -100,13 +100,13 @@ kalmia_send_init_packet(struct usbnet *dev, u8 *init_msg, u8 init_msg_len,
 static int
 kalmia_init_and_get_ethernet_addr(struct usbnet *dev, u8 *ethernet_addr)
 {
-       const static char init_msg_1[] =
+       static const char init_msg_1[] =
                { 0x57, 0x50, 0x04, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00,
                0x00, 0x00 };
-       const static char init_msg_2[] =
+       static const char init_msg_2[] =
                { 0x57, 0x50, 0x04, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0xf4,
                0x00, 0x00 };
-       const static int buflen = 28;
+       static const int buflen = 28;
        char *usb_buf;
        int status;
 
@@ -239,11 +239,11 @@ kalmia_rx_fixup(struct usbnet *dev, struct sk_buff *skb)
         * Our task here is to strip off framing, leaving skb with one
         * data frame for the usbnet framework code to process.
         */
-       const static u8 HEADER_END_OF_USB_PACKET[] =
+       static const u8 HEADER_END_OF_USB_PACKET[] =
                { 0x57, 0x5a, 0x00, 0x00, 0x08, 0x00 };
-       const static u8 EXPECTED_UNKNOWN_HEADER_1[] =
+       static const u8 EXPECTED_UNKNOWN_HEADER_1[] =
                { 0x57, 0x43, 0x1e, 0x00, 0x15, 0x02 };
-       const static u8 EXPECTED_UNKNOWN_HEADER_2[] =
+       static const u8 EXPECTED_UNKNOWN_HEADER_2[] =
                { 0x57, 0x50, 0x0e, 0x00, 0x00, 0x00 };
        int i = 0;