]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
staging: rtl8192u: Fix braces {} style
authorsimran singhal <singhalsimran0@gmail.com>
Sat, 11 Feb 2017 20:43:40 +0000 (02:13 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 12 Feb 2017 12:42:59 +0000 (13:42 +0100)
This fixes all checkpatch form of this from the Lustre tree: CHECK:
braces {} should be used on all arms of this statement

Signed-off-by: simran singhal <singhalsimran0@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c

index eaeb9dc97b722bf057b552c5d4a4e97b014a9fcc..b9377f3f0c4e7c29b38e1cd2e85651e97845ed15 100644 (file)
@@ -380,10 +380,11 @@ static int ieee80211_ccmp_set_key(void *key, int len, u8 *seq, void *priv)
                        data->rx_pn[5] = seq[0];
                }
                crypto_cipher_setkey((void *)data->tfm, data->key, CCMP_TK_LEN);
-       } else if (len == 0)
+       } else if (len == 0) {
                data->key_set = 0;
-       else
+       } else {
                return -1;
+       }
 
        return 0;
 }