Skip to content

Commit

Permalink
staging: rtl8187se: Delete space prohibited after open parenthesis.
Browse files Browse the repository at this point in the history
Delete space prohibited after open parenthesis and fix coding style in
the lines changed when It is necessary

Fix checkpatch.pl errors:
ERROR: space prohibited after that open parenthesis '('

Signed-off-by: Ana Rey <anarey@gmail.com>
Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
  • Loading branch information
Ana Rey authored and Peter P Waskiewicz Jr committed Mar 17, 2014
1 parent 8c98b99 commit 9ce6e60
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ static void ieee80211_send_beacon(struct ieee80211_device *ieee)
}

ieee->beacon_timer.expires = jiffies +
(MSECS( ieee->current_network.beacon_interval -5));
(MSECS(ieee->current_network.beacon_interval - 5));

if (ieee->beacon_txing)
add_timer(&ieee->beacon_timer);
Expand Down Expand Up @@ -491,7 +491,7 @@ static void ieee80211_softmac_scan_wq(struct work_struct *work)
goto out; /* no good chans */
} while (!channel_map[ieee->current_network.channel]);

if (ieee->scanning == 0 ) {
if (ieee->scanning == 0) {
printk("error out, scanning = 0\n");
goto out;
}
Expand Down Expand Up @@ -580,6 +580,7 @@ void ieee80211_rtl_start_scan(struct ieee80211_device *ieee)
if (IS_COUNTRY_IE_VALID(ieee))
RESET_CIE_WATCHDOG(ieee);
}

if (ieee->softmac_features & IEEE_SOFTMAC_SCAN) {
if (ieee->scanning == 0) {
ieee->scanning = 1;
Expand Down Expand Up @@ -795,7 +796,7 @@ static struct sk_buff *ieee80211_assoc_resp(struct ieee80211_device *ieee,
crypt = ieee->crypt[ieee->tx_keyidx];
else crypt = NULL;

encrypt = ( crypt && crypt->ops);
encrypt = (crypt && crypt->ops);

if (encrypt)
assoc->capability |= cpu_to_le16(WLAN_CAPABILITY_PRIVACY);
Expand Down Expand Up @@ -948,7 +949,7 @@ ieee80211_association_req(struct ieee80211_network *beacon,
memcpy(ieee->ap_mac_addr, beacon->bssid, ETH_ALEN); /* for HW security */

hdr->capability = cpu_to_le16(WLAN_CAPABILITY_BSS);
if (beacon->capability & WLAN_CAPABILITY_PRIVACY )
if (beacon->capability & WLAN_CAPABILITY_PRIVACY)
hdr->capability |= cpu_to_le16(WLAN_CAPABILITY_PRIVACY);
if (beacon->capability & WLAN_CAPABILITY_SHORT_PREAMBLE)
hdr->capability |= cpu_to_le16(WLAN_CAPABILITY_SHORT_PREAMBLE);
Expand Down Expand Up @@ -1069,7 +1070,7 @@ static void ieee80211_rtl_auth_challenge(struct ieee80211_device *ieee, u8 *chal

IEEE80211_DEBUG_MGMT("Sending authentication challenge response\n");

ieee80211_encrypt_fragment(ieee, skb, sizeof(struct ieee80211_hdr_3addr ));
ieee80211_encrypt_fragment(ieee, skb, sizeof(struct ieee80211_hdr_3addr));

softmac_mgmt_xmit(skb, ieee);
if (!timer_pending(&ieee->associate_timer)) {
Expand Down Expand Up @@ -1436,7 +1437,7 @@ static short ieee80211_sta_ps_sleep(struct ieee80211_device *ieee, u32 *time_h,
if (!time_after(jiffies, ieee->last_rx_ps_time + MSECS(timeout)))
return 0;

if ((ieee->softmac_features & IEEE_SOFTMAC_SINGLE_QUEUE ) &&
if ((ieee->softmac_features & IEEE_SOFTMAC_SINGLE_QUEUE) &&
(ieee->mgmt_queue_tail != ieee->mgmt_queue_head))
return 0;

Expand Down

0 comments on commit 9ce6e60

Please sign in to comment.