Commit 6b7bbd18 authored by Burcin Akalin's avatar Burcin Akalin Committed by Greg Kroah-Hartman

staging: wlan-ng: Do not use multiple blank lines.

Remove multiple blank lines. Problem found using checkpatch.pl
"CHECK: Please don't use multiple blank lines"
Signed-off-by: default avatarBurcin Akalin <brcnakalin@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a16d77fc
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
#include "hfa384x.h" #include "hfa384x.h"
#include "prism2mgmt.h" #include "prism2mgmt.h"
/* Prism2 channel/frequency/bitrate declarations */ /* Prism2 channel/frequency/bitrate declarations */
static const struct ieee80211_channel prism2_channels[] = { static const struct ieee80211_channel prism2_channels[] = {
{ .center_freq = 2412 }, { .center_freq = 2412 },
...@@ -34,7 +33,6 @@ static const u32 prism2_cipher_suites[PRISM2_NUM_CIPHER_SUITES] = { ...@@ -34,7 +33,6 @@ static const u32 prism2_cipher_suites[PRISM2_NUM_CIPHER_SUITES] = {
WLAN_CIPHER_SUITE_WEP104 WLAN_CIPHER_SUITE_WEP104
}; };
/* prism2 device private data */ /* prism2 device private data */
struct prism2_wiphy_private { struct prism2_wiphy_private {
wlandevice_t *wlandev; wlandevice_t *wlandev;
...@@ -48,7 +46,6 @@ struct prism2_wiphy_private { ...@@ -48,7 +46,6 @@ struct prism2_wiphy_private {
static const void * const prism2_wiphy_privid = &prism2_wiphy_privid; static const void * const prism2_wiphy_privid = &prism2_wiphy_privid;
/* Helper Functions */ /* Helper Functions */
static int prism2_result2err(int prism2_result) static int prism2_result2err(int prism2_result)
{ {
...@@ -100,7 +97,6 @@ static int prism2_domibset_pstr32(wlandevice_t *wlandev, ...@@ -100,7 +97,6 @@ static int prism2_domibset_pstr32(wlandevice_t *wlandev,
return p80211req_dorequest(wlandev, (u8 *) &msg); return p80211req_dorequest(wlandev, (u8 *) &msg);
} }
/* The interface functions, called by the cfg80211 layer */ /* The interface functions, called by the cfg80211 layer */
static int prism2_change_virtual_intf(struct wiphy *wiphy, static int prism2_change_virtual_intf(struct wiphy *wiphy,
struct net_device *dev, struct net_device *dev,
...@@ -298,7 +294,6 @@ static int prism2_set_default_key(struct wiphy *wiphy, struct net_device *dev, ...@@ -298,7 +294,6 @@ static int prism2_set_default_key(struct wiphy *wiphy, struct net_device *dev,
return err; return err;
} }
static int prism2_get_station(struct wiphy *wiphy, struct net_device *dev, static int prism2_get_station(struct wiphy *wiphy, struct net_device *dev,
const u8 *mac, struct station_info *sinfo) const u8 *mac, struct station_info *sinfo)
{ {
...@@ -322,7 +317,6 @@ static int prism2_get_station(struct wiphy *wiphy, struct net_device *dev, ...@@ -322,7 +317,6 @@ static int prism2_get_station(struct wiphy *wiphy, struct net_device *dev,
result = wlandev->mlmerequest(wlandev, (struct p80211msg *) &quality); result = wlandev->mlmerequest(wlandev, (struct p80211msg *) &quality);
if (result == 0) { if (result == 0) {
sinfo->txrate.legacy = quality.txrate.data; sinfo->txrate.legacy = quality.txrate.data;
sinfo->filled |= BIT(NL80211_STA_INFO_TX_BITRATE); sinfo->filled |= BIT(NL80211_STA_INFO_TX_BITRATE);
...@@ -623,7 +617,6 @@ static int prism2_disconnect(struct wiphy *wiphy, struct net_device *dev, ...@@ -623,7 +617,6 @@ static int prism2_disconnect(struct wiphy *wiphy, struct net_device *dev,
int result; int result;
int err = 0; int err = 0;
/* Do a join, with a bogus ssid. Thats the only way I can think of */ /* Do a join, with a bogus ssid. Thats the only way I can think of */
msg_join.msgcode = DIDmsg_lnxreq_autojoin; msg_join.msgcode = DIDmsg_lnxreq_autojoin;
...@@ -638,7 +631,6 @@ static int prism2_disconnect(struct wiphy *wiphy, struct net_device *dev, ...@@ -638,7 +631,6 @@ static int prism2_disconnect(struct wiphy *wiphy, struct net_device *dev,
return err; return err;
} }
static int prism2_join_ibss(struct wiphy *wiphy, struct net_device *dev, static int prism2_join_ibss(struct wiphy *wiphy, struct net_device *dev,
struct cfg80211_ibss_params *params) struct cfg80211_ibss_params *params)
{ {
...@@ -650,7 +642,6 @@ static int prism2_leave_ibss(struct wiphy *wiphy, struct net_device *dev) ...@@ -650,7 +642,6 @@ static int prism2_leave_ibss(struct wiphy *wiphy, struct net_device *dev)
return -EOPNOTSUPP; return -EOPNOTSUPP;
} }
static int prism2_set_tx_power(struct wiphy *wiphy, struct wireless_dev *wdev, static int prism2_set_tx_power(struct wiphy *wiphy, struct wireless_dev *wdev,
enum nl80211_tx_power_setting type, int mbm) enum nl80211_tx_power_setting type, int mbm)
{ {
...@@ -706,9 +697,6 @@ static int prism2_get_tx_power(struct wiphy *wiphy, struct wireless_dev *wdev, ...@@ -706,9 +697,6 @@ static int prism2_get_tx_power(struct wiphy *wiphy, struct wireless_dev *wdev,
return err; return err;
} }
/* Interface callback functions, passing data back up to the cfg80211 layer */ /* Interface callback functions, passing data back up to the cfg80211 layer */
void prism2_connect_result(wlandevice_t *wlandev, u8 failed) void prism2_connect_result(wlandevice_t *wlandev, u8 failed)
{ {
...@@ -731,7 +719,6 @@ void prism2_roamed(wlandevice_t *wlandev) ...@@ -731,7 +719,6 @@ void prism2_roamed(wlandevice_t *wlandev)
NULL, 0, NULL, 0, GFP_KERNEL); NULL, 0, NULL, 0, GFP_KERNEL);
} }
/* Structures for declaring wiphy interface */ /* Structures for declaring wiphy interface */
static const struct cfg80211_ops prism2_usb_cfg_ops = { static const struct cfg80211_ops prism2_usb_cfg_ops = {
.change_virtual_intf = prism2_change_virtual_intf, .change_virtual_intf = prism2_change_virtual_intf,
...@@ -750,7 +737,6 @@ static const struct cfg80211_ops prism2_usb_cfg_ops = { ...@@ -750,7 +737,6 @@ static const struct cfg80211_ops prism2_usb_cfg_ops = {
.get_tx_power = prism2_get_tx_power, .get_tx_power = prism2_get_tx_power,
}; };
/* Functions to create/free wiphy interface */ /* Functions to create/free wiphy interface */
static struct wiphy *wlan_create_wiphy(struct device *dev, wlandevice_t *wlandev) static struct wiphy *wlan_create_wiphy(struct device *dev, wlandevice_t *wlandev)
{ {
...@@ -788,7 +774,6 @@ static struct wiphy *wlan_create_wiphy(struct device *dev, wlandevice_t *wlandev ...@@ -788,7 +774,6 @@ static struct wiphy *wlan_create_wiphy(struct device *dev, wlandevice_t *wlandev
return wiphy; return wiphy;
} }
static void wlan_free_wiphy(struct wiphy *wiphy) static void wlan_free_wiphy(struct wiphy *wiphy)
{ {
wiphy_unregister(wiphy); wiphy_unregister(wiphy);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment