diff options
author | Mithlesh Thukral <mithlesh@linsyssoft.com> | 2009-06-10 10:06:11 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-15 15:01:26 -0400 |
commit | 297f06cea635ea4552541a11e7fb7014425110c6 (patch) | |
tree | 7468f14f1bd2dcf8767ce9b24c07c97ae6396434 /drivers/staging/wlan-ng/p80211netdev.c | |
parent | 0984e56a65a29ad0700c5abf657327e73929ea1f (diff) |
staging: wlan-ng: scripts/checkpatch.pl error fixes.
scripts/checkpatch.pl error fixes. This is a TODO item.
This patch fixes most of the errors reported by checkpatch.pl in
wlan-ng directory of staging tree.
Signed-off-by: Mithlesh Thukral <mithlesh@linsyssoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/wlan-ng/p80211netdev.c')
-rw-r--r-- | drivers/staging/wlan-ng/p80211netdev.c | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/drivers/staging/wlan-ng/p80211netdev.c b/drivers/staging/wlan-ng/p80211netdev.c index c273c034a83..e397b32ece6 100644 --- a/drivers/staging/wlan-ng/p80211netdev.c +++ b/drivers/staging/wlan-ng/p80211netdev.c | |||
@@ -94,18 +94,18 @@ | |||
94 | static void p80211netdev_rx_bh(unsigned long arg); | 94 | static void p80211netdev_rx_bh(unsigned long arg); |
95 | 95 | ||
96 | /* netdevice method functions */ | 96 | /* netdevice method functions */ |
97 | static int p80211knetdev_init(netdevice_t * netdev); | 97 | static int p80211knetdev_init(netdevice_t *netdev); |
98 | static struct net_device_stats *p80211knetdev_get_stats(netdevice_t * netdev); | 98 | static struct net_device_stats *p80211knetdev_get_stats(netdevice_t *netdev); |
99 | static int p80211knetdev_open(netdevice_t * netdev); | 99 | static int p80211knetdev_open(netdevice_t *netdev); |
100 | static int p80211knetdev_stop(netdevice_t * netdev); | 100 | static int p80211knetdev_stop(netdevice_t *netdev); |
101 | static int p80211knetdev_hard_start_xmit(struct sk_buff *skb, | 101 | static int p80211knetdev_hard_start_xmit(struct sk_buff *skb, |
102 | netdevice_t * netdev); | 102 | netdevice_t *netdev); |
103 | static void p80211knetdev_set_multicast_list(netdevice_t * dev); | 103 | static void p80211knetdev_set_multicast_list(netdevice_t *dev); |
104 | static int p80211knetdev_do_ioctl(netdevice_t * dev, struct ifreq *ifr, | 104 | static int p80211knetdev_do_ioctl(netdevice_t *dev, struct ifreq *ifr, |
105 | int cmd); | 105 | int cmd); |
106 | static int p80211knetdev_set_mac_address(netdevice_t * dev, void *addr); | 106 | static int p80211knetdev_set_mac_address(netdevice_t *dev, void *addr); |
107 | static void p80211knetdev_tx_timeout(netdevice_t * netdev); | 107 | static void p80211knetdev_tx_timeout(netdevice_t *netdev); |
108 | static int p80211_rx_typedrop(wlandevice_t * wlandev, u16 fc); | 108 | static int p80211_rx_typedrop(wlandevice_t *wlandev, u16 fc); |
109 | 109 | ||
110 | int wlan_watchdog = 5000; | 110 | int wlan_watchdog = 5000; |
111 | module_param(wlan_watchdog, int, 0644); | 111 | module_param(wlan_watchdog, int, 0644); |
@@ -127,7 +127,7 @@ MODULE_PARM_DESC(wlan_wext_write, "enable write wireless extensions"); | |||
127 | * Returns: | 127 | * Returns: |
128 | * nothing | 128 | * nothing |
129 | ----------------------------------------------------------------*/ | 129 | ----------------------------------------------------------------*/ |
130 | static int p80211knetdev_init(netdevice_t * netdev) | 130 | static int p80211knetdev_init(netdevice_t *netdev) |
131 | { | 131 | { |
132 | /* Called in response to register_netdev */ | 132 | /* Called in response to register_netdev */ |
133 | /* This is usually the probe function, but the probe has */ | 133 | /* This is usually the probe function, but the probe has */ |
@@ -174,7 +174,7 @@ static struct net_device_stats *p80211knetdev_get_stats(netdevice_t * netdev) | |||
174 | * Returns: | 174 | * Returns: |
175 | * zero on success, non-zero otherwise | 175 | * zero on success, non-zero otherwise |
176 | ----------------------------------------------------------------*/ | 176 | ----------------------------------------------------------------*/ |
177 | static int p80211knetdev_open(netdevice_t * netdev) | 177 | static int p80211knetdev_open(netdevice_t *netdev) |
178 | { | 178 | { |
179 | int result = 0; /* success */ | 179 | int result = 0; /* success */ |
180 | wlandevice_t *wlandev = netdev->ml_priv; | 180 | wlandevice_t *wlandev = netdev->ml_priv; |
@@ -209,7 +209,7 @@ static int p80211knetdev_open(netdevice_t * netdev) | |||
209 | * Returns: | 209 | * Returns: |
210 | * zero on success, non-zero otherwise | 210 | * zero on success, non-zero otherwise |
211 | ----------------------------------------------------------------*/ | 211 | ----------------------------------------------------------------*/ |
212 | static int p80211knetdev_stop(netdevice_t * netdev) | 212 | static int p80211knetdev_stop(netdevice_t *netdev) |
213 | { | 213 | { |
214 | int result = 0; | 214 | int result = 0; |
215 | wlandevice_t *wlandev = netdev->ml_priv; | 215 | wlandevice_t *wlandev = netdev->ml_priv; |
@@ -236,7 +236,7 @@ static int p80211knetdev_stop(netdevice_t * netdev) | |||
236 | * Side effects: | 236 | * Side effects: |
237 | * | 237 | * |
238 | ----------------------------------------------------------------*/ | 238 | ----------------------------------------------------------------*/ |
239 | void p80211netdev_rx(wlandevice_t * wlandev, struct sk_buff *skb) | 239 | void p80211netdev_rx(wlandevice_t *wlandev, struct sk_buff *skb) |
240 | { | 240 | { |
241 | /* Enqueue for post-irq processing */ | 241 | /* Enqueue for post-irq processing */ |
242 | skb_queue_tail(&wlandev->nsd_rxq, skb); | 242 | skb_queue_tail(&wlandev->nsd_rxq, skb); |
@@ -345,7 +345,7 @@ static void p80211netdev_rx_bh(unsigned long arg) | |||
345 | * zero on success, non-zero on failure. | 345 | * zero on success, non-zero on failure. |
346 | ----------------------------------------------------------------*/ | 346 | ----------------------------------------------------------------*/ |
347 | static int p80211knetdev_hard_start_xmit(struct sk_buff *skb, | 347 | static int p80211knetdev_hard_start_xmit(struct sk_buff *skb, |
348 | netdevice_t * netdev) | 348 | netdevice_t *netdev) |
349 | { | 349 | { |
350 | int result = 0; | 350 | int result = 0; |
351 | int txresult = -1; | 351 | int txresult = -1; |
@@ -472,7 +472,7 @@ failed: | |||
472 | * Returns: | 472 | * Returns: |
473 | * nothing | 473 | * nothing |
474 | ----------------------------------------------------------------*/ | 474 | ----------------------------------------------------------------*/ |
475 | static void p80211knetdev_set_multicast_list(netdevice_t * dev) | 475 | static void p80211knetdev_set_multicast_list(netdevice_t *dev) |
476 | { | 476 | { |
477 | wlandevice_t *wlandev = dev->ml_priv; | 477 | wlandevice_t *wlandev = dev->ml_priv; |
478 | 478 | ||
@@ -485,7 +485,7 @@ static void p80211knetdev_set_multicast_list(netdevice_t * dev) | |||
485 | 485 | ||
486 | #ifdef SIOCETHTOOL | 486 | #ifdef SIOCETHTOOL |
487 | 487 | ||
488 | static int p80211netdev_ethtool(wlandevice_t * wlandev, void __user * useraddr) | 488 | static int p80211netdev_ethtool(wlandevice_t *wlandev, void __user *useraddr) |
489 | { | 489 | { |
490 | u32 ethcmd; | 490 | u32 ethcmd; |
491 | struct ethtool_drvinfo info; | 491 | struct ethtool_drvinfo info; |
@@ -557,7 +557,7 @@ static int p80211netdev_ethtool(wlandevice_t * wlandev, void __user * useraddr) | |||
557 | * Process thread (ioctl caller). TODO: SMP support may require | 557 | * Process thread (ioctl caller). TODO: SMP support may require |
558 | * locks. | 558 | * locks. |
559 | ----------------------------------------------------------------*/ | 559 | ----------------------------------------------------------------*/ |
560 | static int p80211knetdev_do_ioctl(netdevice_t * dev, struct ifreq *ifr, int cmd) | 560 | static int p80211knetdev_do_ioctl(netdevice_t *dev, struct ifreq *ifr, int cmd) |
561 | { | 561 | { |
562 | int result = 0; | 562 | int result = 0; |
563 | p80211ioctl_req_t *req = (p80211ioctl_req_t *) ifr; | 563 | p80211ioctl_req_t *req = (p80211ioctl_req_t *) ifr; |
@@ -634,7 +634,7 @@ bail: | |||
634 | * | 634 | * |
635 | * by: Collin R. Mulliner <collin@mulliner.org> | 635 | * by: Collin R. Mulliner <collin@mulliner.org> |
636 | ----------------------------------------------------------------*/ | 636 | ----------------------------------------------------------------*/ |
637 | static int p80211knetdev_set_mac_address(netdevice_t * dev, void *addr) | 637 | static int p80211knetdev_set_mac_address(netdevice_t *dev, void *addr) |
638 | { | 638 | { |
639 | struct sockaddr *new_addr = addr; | 639 | struct sockaddr *new_addr = addr; |
640 | p80211msg_dot11req_mibset_t dot11req; | 640 | p80211msg_dot11req_mibset_t dot11req; |
@@ -694,7 +694,7 @@ static int p80211knetdev_set_mac_address(netdevice_t * dev, void *addr) | |||
694 | return result; | 694 | return result; |
695 | } | 695 | } |
696 | 696 | ||
697 | static int wlan_change_mtu(netdevice_t * dev, int new_mtu) | 697 | static int wlan_change_mtu(netdevice_t *dev, int new_mtu) |
698 | { | 698 | { |
699 | /* 2312 is max 802.11 payload, 20 is overhead, (ether + llc +snap) | 699 | /* 2312 is max 802.11 payload, 20 is overhead, (ether + llc +snap) |
700 | and another 8 for wep. */ | 700 | and another 8 for wep. */ |
@@ -742,7 +742,7 @@ static const struct net_device_ops p80211_netdev_ops = { | |||
742 | * compiled drivers, this function will be called in the | 742 | * compiled drivers, this function will be called in the |
743 | * context of the kernel startup code. | 743 | * context of the kernel startup code. |
744 | ----------------------------------------------------------------*/ | 744 | ----------------------------------------------------------------*/ |
745 | int wlan_setup(wlandevice_t * wlandev) | 745 | int wlan_setup(wlandevice_t *wlandev) |
746 | { | 746 | { |
747 | int result = 0; | 747 | int result = 0; |
748 | netdevice_t *dev; | 748 | netdevice_t *dev; |
@@ -800,7 +800,7 @@ int wlan_setup(wlandevice_t * wlandev) | |||
800 | * compiled drivers, this function will be called in the | 800 | * compiled drivers, this function will be called in the |
801 | * context of the kernel startup code. | 801 | * context of the kernel startup code. |
802 | ----------------------------------------------------------------*/ | 802 | ----------------------------------------------------------------*/ |
803 | int wlan_unsetup(wlandevice_t * wlandev) | 803 | int wlan_unsetup(wlandevice_t *wlandev) |
804 | { | 804 | { |
805 | int result = 0; | 805 | int result = 0; |
806 | 806 | ||
@@ -836,7 +836,7 @@ int wlan_unsetup(wlandevice_t * wlandev) | |||
836 | * Call Context: | 836 | * Call Context: |
837 | * Can be either interrupt or not. | 837 | * Can be either interrupt or not. |
838 | ----------------------------------------------------------------*/ | 838 | ----------------------------------------------------------------*/ |
839 | int register_wlandev(wlandevice_t * wlandev) | 839 | int register_wlandev(wlandevice_t *wlandev) |
840 | { | 840 | { |
841 | int i = 0; | 841 | int i = 0; |
842 | 842 | ||
@@ -864,7 +864,7 @@ int register_wlandev(wlandevice_t * wlandev) | |||
864 | * Call Context: | 864 | * Call Context: |
865 | * Can be either interrupt or not. | 865 | * Can be either interrupt or not. |
866 | ----------------------------------------------------------------*/ | 866 | ----------------------------------------------------------------*/ |
867 | int unregister_wlandev(wlandevice_t * wlandev) | 867 | int unregister_wlandev(wlandevice_t *wlandev) |
868 | { | 868 | { |
869 | struct sk_buff *skb; | 869 | struct sk_buff *skb; |
870 | 870 | ||
@@ -907,7 +907,7 @@ int unregister_wlandev(wlandevice_t * wlandev) | |||
907 | * Call context: | 907 | * Call context: |
908 | * Usually interrupt. | 908 | * Usually interrupt. |
909 | ----------------------------------------------------------------*/ | 909 | ----------------------------------------------------------------*/ |
910 | void p80211netdev_hwremoved(wlandevice_t * wlandev) | 910 | void p80211netdev_hwremoved(wlandevice_t *wlandev) |
911 | { | 911 | { |
912 | wlandev->hwremoved = 1; | 912 | wlandev->hwremoved = 1; |
913 | if (wlandev->state == WLAN_DEVICE_OPEN) | 913 | if (wlandev->state == WLAN_DEVICE_OPEN) |
@@ -937,7 +937,7 @@ void p80211netdev_hwremoved(wlandevice_t * wlandev) | |||
937 | * Call context: | 937 | * Call context: |
938 | * interrupt | 938 | * interrupt |
939 | ----------------------------------------------------------------*/ | 939 | ----------------------------------------------------------------*/ |
940 | static int p80211_rx_typedrop(wlandevice_t * wlandev, u16 fc) | 940 | static int p80211_rx_typedrop(wlandevice_t *wlandev, u16 fc) |
941 | { | 941 | { |
942 | u16 ftype; | 942 | u16 ftype; |
943 | u16 fstype; | 943 | u16 fstype; |
@@ -1095,7 +1095,7 @@ static int p80211_rx_typedrop(wlandevice_t * wlandev, u16 fc) | |||
1095 | return drop; | 1095 | return drop; |
1096 | } | 1096 | } |
1097 | 1097 | ||
1098 | static void p80211knetdev_tx_timeout(netdevice_t * netdev) | 1098 | static void p80211knetdev_tx_timeout(netdevice_t *netdev) |
1099 | { | 1099 | { |
1100 | wlandevice_t *wlandev = netdev->ml_priv; | 1100 | wlandevice_t *wlandev = netdev->ml_priv; |
1101 | 1101 | ||