mwifiex: Fixed coding style issues
PATCH 1/1 mwifiex: Fixed coding style issues
Some indentation and basic style violations are fixed in this patch.
Signed-off-by Ujjal Roy <[email protected]>
--- drivers/net/wireless/marvell/mwifiex/cfg80211.c | 2 +- drivers/net/wireless/marvell/mwifiex/pcie.c | 2 +- drivers/net/wireless/marvell/mwifiex/uap_cmd.c | 2 +- drivers/net/wireless/marvell/mwifiex/usb.c | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-)
drivers/net/wireless/marvell/mwifiex/cfg80211.c +1 -1
@@ -676,7 +676,7 @@ mwifiex_cfg80211_set_wiphy_params(struct wiphy *wiphy, u32 changed) }break ; -case MWIFIEX_BSS_ROLE_STA : +case MWIFIEX_BSS_ROLE_STA :if (priv->media_connected) {mwifiex_dbg (adapter,ERROR ,"cannot change wiphy params when connected" );
drivers/net/wireless/marvell/mwifiex/pcie.c +1 -1
@@ -1408,7 +1408,7 @@ mwifiex_pcie_send_boot_cmd(struct mwifiex_adapter *adapter, struct sk_buff *skb)return -1 ; } -if (mwifiex_map_pci_memory (adapter, skb, skb->len ,PCI_DMA_TODEVICE )) +if (mwifiex_map_pci_memory (adapter, skb, skb->len,PCI_DMA_TODEVICE ))return -1 ; buf_pa =MWIFIEX_SKB_DMA_ADDR (skb);
drivers/net/wireless/marvell/mwifiex/uap_cmd.c +1 -1
@@ -192,7 +192,7 @@ mwifiex_set_ht_params(struct mwifiex_private *priv, } priv->ap_11n_enabled =1 ; }else { -memset (&bss_cfg->ht_cap ,0 ,sizeof (struct ieee80211_ht_cap )); +memset (&bss_cfg->ht_cap,0 ,sizeof (struct ieee80211_ht_cap )); bss_cfg->ht_cap.cap_info =cpu_to_le16 (MWIFIEX_DEF_HT_CAP ); bss_cfg->ht_cap.ampdu_params_info =MWIFIEX_DEF_AMPDU ; }
drivers/net/wireless/marvell/mwifiex/usb.c +2 -2
@@ -244,9 +244,9 @@ setup_for_next:if (card->rx_cmd_ep == context->ep) {mwifiex_usb_submit_rx_urb (context, size); }else { -if (atomic_read (&adapter->rx_pending) <=HIGH_RX_PENDING ){ +if (atomic_read (&adapter->rx_pending) <=HIGH_RX_PENDING ) {mwifiex_usb_submit_rx_urb (context, size); - }else { + }else { context->skb =NULL ; } }
--
1.9.1
Hi Ujjal,
You should probably split this up into patches for each style violation you're fixing, i.e. one for the incorrect indentation of the case label, one for the spaces before commas, and one for the missing spaces around brackets.
Quoted 3 lines · Ujjal Roy
Some indentation and basic style violations are fixed in this patch.
Signed-off-by Ujjal Roy <[email protected]>
Either way, this looks sane to me,
Reviewed-by Julian Calaby <[email protected]>
Quoted 69 lines
--- drivers/net/wireless/marvell/mwifiex/cfg80211.c | 2 +- drivers/net/wireless/marvell/mwifiex/pcie.c | 2 +- drivers/net/wireless/marvell/mwifiex/uap_cmd.c | 2 +- drivers/net/wireless/marvell/mwifiex/usb.c | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-)drivers/net/wireless/marvell/mwifiex/cfg80211.c +1
-1@@ -676,7 +676,7 @@ mwifiex_cfg80211_set_wiphy_params(struct wiphy *wiphy, u32 changed) }break ; -case MWIFIEX_BSS_ROLE_STA : +case MWIFIEX_BSS_ROLE_STA :if (priv->media_connected) {mwifiex_dbg (adapter,ERROR ,"cannot change wiphy params when connected" );drivers/net/wireless/marvell/mwifiex/pcie.c +1
-1@@ -1408,7 +1408,7 @@ mwifiex_pcie_send_boot_cmd(struct mwifiex_adapter *adapter, struct sk_buff *skb)return -1 ; } -if (mwifiex_map_pci_memory (adapter, skb, skb->len ,PCI_DMA_TODEVICE )) +if (mwifiex_map_pci_memory (adapter, skb, skb->len,PCI_DMA_TODEVICE ))return -1 ; buf_pa =MWIFIEX_SKB_DMA_ADDR (skb);drivers/net/wireless/marvell/mwifiex/uap_cmd.c +1
-1@@ -192,7 +192,7 @@ mwifiex_set_ht_params(struct mwifiex_private *priv, } priv->ap_11n_enabled =1 ; }else { -memset (&bss_cfg->ht_cap ,0 ,sizeof (struct ieee80211_ht_cap )); +memset (&bss_cfg->ht_cap,0 ,sizeof (struct ieee80211_ht_cap )); bss_cfg->ht_cap.cap_info =cpu_to_le16 (MWIFIEX_DEF_HT_CAP ); bss_cfg->ht_cap.ampdu_params_info =MWIFIEX_DEF_AMPDU ; }drivers/net/wireless/marvell/mwifiex/usb.c +2
-3@@ -244,9 +244,9 @@ setup_for_next:if (card->rx_cmd_ep == context->ep) {mwifiex_usb_submit_rx_urb (context, size); }else { -if (atomic_read (&adapter->rx_pending) <=HIGH_RX_PENDING ){ +if (atomic_read (&adapter->rx_pending) <=HIGH_RX_PENDING ) {mwifiex_usb_submit_rx_urb (context, size); - }else { + }else { context->skb =NULL ; } } --1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 4 lines
Julian Calaby Email: [email protected] Profile: http://www.google.com/profiles/julian.calaby/