]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
staging: rtl8712: fixed coding style issues
authorJavier M. Mellid <jmunhoz@igalia.com>
Sat, 2 Apr 2011 01:02:12 +0000 (03:02 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 20 Apr 2011 21:13:31 +0000 (14:13 -0700)
Fixed some style and format issues with code.

Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rtl8712/rtl8712_led.c
drivers/staging/rtl8712/rtl871x_cmd.c
drivers/staging/rtl8712/rtl871x_ioctl_linux.c
drivers/staging/rtl8712/rtl871x_ioctl_rtl.c
drivers/staging/rtl8712/rtl871x_mp.c
drivers/staging/rtl8712/rtl871x_recv.c

index 5024ee42b04b9c2f1884631b502089f33c697a3d..cb1751e95f0696e0682345821df2c1ea7444c7a1 100644 (file)
@@ -49,7 +49,7 @@
  * LED object.
  *===========================================================================
  */
-enum _LED_STATE_871x{
+enum _LED_STATE_871x {
        LED_UNKNOWN = 0,
        LED_ON = 1,
        LED_OFF = 2,
index 6b9daa6acbba2be5d5f7175d474121f1b83ff743..ba92762dbb1c44f3eb280d2f7c51f7d3d5e37fad 100644 (file)
@@ -477,8 +477,8 @@ u8 r8712_joinbss_cmd(struct _adapter  *padapter, struct wlan_network *pnetwork)
                 * to avoid some IOT issues, especially for Realtek 8192u
                 * SoftAP.
                 */
-               if ((padapter->securitypriv.PrivacyAlgrthm != _WEP40_ ) &&
-                   (padapter->securitypriv.PrivacyAlgrthm != _WEP104_ )) {
+               if ((padapter->securitypriv.PrivacyAlgrthm != _WEP40_) &&
+                   (padapter->securitypriv.PrivacyAlgrthm != _WEP104_)) {
                        /* restructure_ht_ie */
                        r8712_restructure_ht_ie(padapter,
                                                &pnetwork->network.IEs[0],
index f71183a4d04adc1db2d3663749adfeb544d82d37..40e6b5cc412d4dea8b3bc12eed4646842741b97b 100644 (file)
@@ -291,7 +291,8 @@ static inline char *translate_scan(struct _adapter *padapter,
                        memset(buf, 0, MAX_WPA_IE_LEN);
                        n = sprintf(buf, "wpa_ie=");
                        for (i = 0; i < wpa_len; i++) {
-                               n += snprintf(buf + n, MAX_WPA_IE_LEN - n, "%02x", wpa_ie[i]);
+                               n += snprintf(buf + n, MAX_WPA_IE_LEN - n,
+                                                       "%02x", wpa_ie[i]);
                                if (n >= MAX_WPA_IE_LEN)
                                        break;
                        }
@@ -310,7 +311,8 @@ static inline char *translate_scan(struct _adapter *padapter,
                        memset(buf, 0, MAX_WPA_IE_LEN);
                        n = sprintf(buf, "rsn_ie=");
                        for (i = 0; i < rsn_len; i++) {
-                               n += snprintf(buf + n, MAX_WPA_IE_LEN - n, "%02x", rsn_ie[i]);
+                               n += snprintf(buf + n, MAX_WPA_IE_LEN - n,
+                                                       "%02x", rsn_ie[i]);
                                if (n >= MAX_WPA_IE_LEN)
                                        break;
                        }
index 7adbe82cd0858dcd176ebbbc96320270aa3c8fba..9a33eaee879bb370201929f9114179e4fb6bb559 100644 (file)
@@ -493,7 +493,7 @@ uint oid_rt_pro_rf_read_registry_hdl(struct oid_par_priv *poid_par_priv)
        return status;
 }
 
-enum _CONNECT_STATE_{
+enum _CONNECT_STATE_ {
        CHECKINGSTATUS,
        ASSOCIATED,
        ADHOCMODE,
index 3ad47912924eb5bbee4c6b27e01e6c48de975eba..41e00a2c862dddf6f16eae4c5dbfe55c9a321de3 100644 (file)
@@ -217,7 +217,10 @@ static u32 get_bb_reg(struct _adapter *pAdapter, u16 offset, u32 bitmask)
        return new_value;
 }
 
-static u8 set_bb_reg(struct _adapter *pAdapter, u16 offset, u32 bitmask, u32 value)
+static u8 set_bb_reg(struct _adapter *pAdapter,
+                    u16 offset,
+                    u32 bitmask,
+                    u32 value)
 {
        u32 org_value, bit_shift, new_value;
 
index a3165e67f8578cc76ef6e2891e0a12f608a1987c..aec83dd8a01f94452335acae3e6ca7276fc33451 100644 (file)
@@ -307,9 +307,9 @@ static sint recv_decache(union recv_frame *precv_frame, u8 bretry,
        return _SUCCESS;
 }
 
-static sint sta2sta_data_frame(struct _adapter *adapter, union recv_frame *precv_frame,
-                       struct sta_info **psta
-)
+static sint sta2sta_data_frame(struct _adapter *adapter,
+                              union recv_frame *precv_frame,
+                              struct sta_info **psta)
 {
        u8 *ptr = precv_frame->u.hdr.rx_data;
        sint ret = _SUCCESS;
@@ -373,8 +373,9 @@ static sint sta2sta_data_frame(struct _adapter *adapter, union recv_frame *precv
        return ret;
 }
 
-static sint ap2sta_data_frame(struct _adapter *adapter, union recv_frame *precv_frame,
-                      struct sta_info **psta)
+static sint ap2sta_data_frame(struct _adapter *adapter,
+                             union recv_frame *precv_frame,
+                             struct sta_info **psta)
 {
        u8 *ptr = precv_frame->u.hdr.rx_data;
        struct rx_pkt_attrib *pattrib = &precv_frame->u.hdr.attrib;
@@ -431,8 +432,9 @@ static sint ap2sta_data_frame(struct _adapter *adapter, union recv_frame *precv_
        return _SUCCESS;
 }
 
-static sint sta2ap_data_frame(struct _adapter *adapter, union recv_frame *precv_frame,
-                      struct sta_info **psta)
+static sint sta2ap_data_frame(struct _adapter *adapter,
+                             union recv_frame *precv_frame,
+                             struct sta_info **psta)
 {
        struct rx_pkt_attrib *pattrib = &precv_frame->u.hdr.attrib;
        struct  sta_priv *pstapriv = &adapter->stapriv;