projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
091a3d5
)
staging: ks7010: add a blank line after declarations
author
Jiong Du
<jiongdu0.0@gmail.com>
Tue, 25 Oct 2016 11:40:50 +0000
(19:40 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 27 Oct 2016 13:19:37 +0000
(15:19 +0200)
Fixes checkpatch warning: Missing a blank line after declarations
Signed-off-by: Jiong Du <jiongdu0.0@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/michael_mic.c
patch
|
blob
|
history
diff --git
a/drivers/staging/ks7010/michael_mic.c
b/drivers/staging/ks7010/michael_mic.c
index 5f3c1496db94e3f8dc40ab6728000851ed642b85..f1064c1f60569e4c9014720277e80ab21cab5c72 100644
(file)
--- a/
drivers/staging/ks7010/michael_mic.c
+++ b/
drivers/staging/ks7010/michael_mic.c
@@
-64,6
+64,7
@@
static
void MichaelAppend(struct michel_mic_t *Mic, uint8_t *src, int nBytes)
{
int addlen;
+
if (Mic->nBytesInM) {
addlen = 4 - Mic->nBytesInM;
if (addlen > nBytes)
@@
-98,6
+99,7
@@
static
void MichaelGetMIC(struct michel_mic_t *Mic, uint8_t *dst)
{
uint8_t *data = Mic->M;
+
switch (Mic->nBytesInM) {
case 0:
Mic->L ^= 0x5a;