staging: ks7010: fix checkpatch PARENTHESIS_ALIGNMENT
authorTobin C. Harding <me@tobin.cc>
Tue, 21 Mar 2017 02:37:05 +0000 (13:37 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Mar 2017 07:52:33 +0000 (08:52 +0100)
Checkpatch emits CHECK: Alignment should match open parenthesis.

Fix alignment to open parenthesis in line with kernel coding style.

Signed-off-by: Tobin C. Harding <me@tobin.cc>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks7010_sdio.c
drivers/staging/ks7010/ks_wlan_net.c

index 0fa13cd58decbc4c15023691f1e6f33aece13a1d..1d3a15f033655180fd419e55d540e6ffc2ffcf18 100644 (file)
@@ -193,8 +193,8 @@ static int _ks_wlan_hw_power_save(struct ks_wlan_private *priv)
                cnt_txqbody(priv));
 
        if (!atomic_read(&priv->psstatus.confirm_wait) &&
-               !atomic_read(&priv->psstatus.snooze_guard) &&
-               !cnt_txqbody(priv)) {
+           !atomic_read(&priv->psstatus.snooze_guard) &&
+           !cnt_txqbody(priv)) {
                retval = ks7010_sdio_read(priv, INT_PENDING, &rw_data,
                                          sizeof(rw_data));
                if (retval) {
index f6f7ffda28c8ba657f2cd1628a91d30cb706d30b..f18ff56adf0ee94081a5324fabfc0d03476728fa 100644 (file)
@@ -1806,11 +1806,11 @@ static int ks_wlan_set_encode_ext(struct net_device *dev,
                commit |= SME_WEP_INDEX;
        } else if (enc->ext_flags & IW_ENCODE_EXT_RX_SEQ_VALID) {
                memcpy(&priv->wpa.key[index].rx_seq[0],
-                       enc->rx_seq, IW_ENCODE_SEQ_MAX_SIZE);
+                      enc->rx_seq, IW_ENCODE_SEQ_MAX_SIZE);
        }
 
        memcpy(&priv->wpa.key[index].addr.sa_data[0],
-               &enc->addr.sa_data[0], ETH_ALEN);
+              &enc->addr.sa_data[0], ETH_ALEN);
 
        switch (enc->alg) {
        case IW_ENCODE_ALG_NONE:
@@ -1829,7 +1829,7 @@ static int ks_wlan_set_encode_ext(struct net_device *dev,
                }
                if (enc->key_len) {
                        memcpy(&priv->wpa.key[index].key_val[0],
-                               &enc->key[0], enc->key_len);
+                              &enc->key[0], enc->key_len);
                        priv->wpa.key[index].key_len = enc->key_len;
                        commit |= (SME_WEP_VAL1 << index);
                }
@@ -1841,19 +1841,19 @@ static int ks_wlan_set_encode_ext(struct net_device *dev,
                }
                if (enc->key_len == 32) {
                        memcpy(&priv->wpa.key[index].key_val[0],
-                               &enc->key[0], enc->key_len - 16);
+                              &enc->key[0], enc->key_len - 16);
                        priv->wpa.key[index].key_len =
                                enc->key_len - 16;
                        if (priv->wpa.key_mgmt_suite == 4) {    /* WPA_NONE */
                                memcpy(&priv->wpa.key[index].
-                                       tx_mic_key[0], &enc->key[16], 8);
+                                      tx_mic_key[0], &enc->key[16], 8);
                                memcpy(&priv->wpa.key[index].
-                                       rx_mic_key[0], &enc->key[16], 8);
+                                      rx_mic_key[0], &enc->key[16], 8);
                        } else {
                                memcpy(&priv->wpa.key[index].
-                                       tx_mic_key[0], &enc->key[16], 8);
+                                      tx_mic_key[0], &enc->key[16], 8);
                                memcpy(&priv->wpa.key[index].
-                                       rx_mic_key[0], &enc->key[24], 8);
+                                      rx_mic_key[0], &enc->key[24], 8);
                        }
                        commit |= (SME_WEP_VAL1 << index);
                }