Skip to contentSkip to conversation

staging: rtl8192e: add braces to if statement - style

PATCH New Zach Turner 1 participant 1 message Oct 23, 2018 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: rtl8192e: add braces to if statement - style

Add braces on all arms of an if-else statement. Check found by checkpatch.

---
 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/staging/rtl8192e/rtllib_crypt_ccmp.c +3 -2
index bc45cf098b04..bab2265372bc 100644
@@ -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;
 }
Signature · 1 line
2.17.1