Commit a55e7eec authored by Zach Turner's avatar Zach Turner Committed by Greg Kroah-Hartman

staging: rtl8192e: add braces to if statement - style

Add braces on all arms of an if-else statement. Check found by
checkpatch.
Signed-off-by: default avatarZach Turner <turnerzdp@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent bb1e6779
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment