From: Tobin C. Harding Date: Tue, 21 Mar 2017 02:37:05 +0000 (+1100) Subject: staging: ks7010: fix checkpatch PARENTHESIS_ALIGNMENT X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=44c3cd5e0459fe1b6611bba9eb6b4d7d8c650686;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Greg Kroah-Hartman --- 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); }