OSDN Git Service

staging: rtl8192e: add braces to if statement - style
authorZach Turner <turnerzdp@gmail.com>
Tue, 23 Oct 2018 18:16:11 +0000 (12:16 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Nov 2018 13:16:33 +0000 (14:16 +0100)
Add braces on all arms of an if-else statement. Check found by
checkpatch.

Signed-off-by: Zach Turner <turnerzdp@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtllib_crypt_ccmp.c

index bc45cf0..bab2265 100644 (file)
@@ -377,10 +377,11 @@ static int rtllib_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;
 }