From c4b370efc7fba6a489eda2cafd41109acbce81fb Mon Sep 17 00:00:00 2001 From: Jiong Du Date: Tue, 25 Oct 2016 19:40:50 +0800 Subject: [PATCH] staging: ks7010: add a blank line after declarations Fixes checkpatch warning: Missing a blank line after declarations Signed-off-by: Jiong Du Signed-off-by: Greg Kroah-Hartman --- drivers/staging/ks7010/michael_mic.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/ks7010/michael_mic.c b/drivers/staging/ks7010/michael_mic.c index 5f3c1496db94..f1064c1f6056 100644 --- 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; -- 2.20.1