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@xxxxxxxx> --- drivers/staging/ks7010/ks7010_sdio.c | 4 ++-- drivers/staging/ks7010/ks_wlan_net.c | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/staging/ks7010/ks7010_sdio.c b/drivers/staging/ks7010/ks7010_sdio.c index 0fa13cd..1d3a15f 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 f6f7ffd..f18ff56 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); } -- 2.7.4 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel