]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
staging: wfx: fix spaces around binary operators
authorJérôme Pouiller <jerome.pouiller@silabs.com>
Tue, 25 Aug 2020 08:58:20 +0000 (10:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Aug 2020 10:19:50 +0000 (12:19 +0200)
A binary operator should be followed by exactly one space.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20200825085828.399505-4-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wfx/key.c

index 5ee2ffc5f93547f01a313df8178594e0cd8a2d92..6165df59ecf9f23d49d15786e9bc5fd36510b9c1 100644 (file)
@@ -171,7 +171,7 @@ static int wfx_add_key(struct wfx_vif *wvif, struct ieee80211_sta *sta,
        k.int_id = wvif->id;
        k.entry_index = idx;
        if (key->cipher == WLAN_CIPHER_SUITE_WEP40 ||
-           key->cipher ==  WLAN_CIPHER_SUITE_WEP104) {
+           key->cipher == WLAN_CIPHER_SUITE_WEP104) {
                if (pairwise)
                        k.type = fill_wep_pair(&k.key.wep_pairwise_key, key,
                                               sta->addr);
@@ -191,13 +191,13 @@ static int wfx_add_key(struct wfx_vif *wvif, struct ieee80211_sta *sta,
                else
                        k.type = fill_ccmp_group(&k.key.aes_group_key, key,
                                                 &seq);
-       } else if (key->cipher ==  WLAN_CIPHER_SUITE_SMS4) {
+       } else if (key->cipher == WLAN_CIPHER_SUITE_SMS4) {
                if (pairwise)
                        k.type = fill_sms4_pair(&k.key.wapi_pairwise_key, key,
                                                sta->addr);
                else
                        k.type = fill_sms4_group(&k.key.wapi_group_key, key);
-       } else if (key->cipher ==  WLAN_CIPHER_SUITE_AES_CMAC) {
+       } else if (key->cipher == WLAN_CIPHER_SUITE_AES_CMAC) {
                k.type = fill_aes_cmac_group(&k.key.igtk_group_key, key,
                                             &seq);
        } else {