summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorTobin C. Harding <me@tobin.cc>2017-03-21 13:37:05 +1100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-03-21 08:52:33 +0100
commit44c3cd5e0459fe1b6611bba9eb6b4d7d8c650686 (patch)
tree0b46cabda0e5ff2801785ff8be87e4940a786a7f /drivers
parentf842397229e447615d5abb3cac34a978ce8f8072 (diff)
staging: ks7010: fix checkpatch PARENTHESIS_ALIGNMENT
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/ks7010/ks7010_sdio.c4
-rw-r--r--drivers/staging/ks7010/ks_wlan_net.c16
2 files changed, 10 insertions, 10 deletions
diff --git a/drivers/staging/ks7010/ks7010_sdio.c b/drivers/staging/ks7010/ks7010_sdio.c
index 0fa13cd58dec..1d3a15f03365 100644
--- a/drivers/staging/ks7010/ks7010_sdio.c
+++ b/drivers/staging/ks7010/ks7010_sdio.c
@@ -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) {
diff --git a/drivers/staging/ks7010/ks_wlan_net.c b/drivers/staging/ks7010/ks_wlan_net.c
index f6f7ffda28c8..f18ff56adf0e 100644
--- a/drivers/staging/ks7010/ks_wlan_net.c
+++ b/drivers/staging/ks7010/ks_wlan_net.c
@@ -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);
}