projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0cffbf
)
staging: vt6655: Merge three lines into one
author
Tapasweni Pathak
<
[email protected]
>
Sun, 28 Sep 2014 12:35:05 +0000
(18:05 +0530)
committer
Greg Kroah-Hartman
<
[email protected]
>
Mon, 29 Sep 2014 03:22:21 +0000
(23:22 -0400)
This patch merges three lines into one, removing unecessary
if check.
Signed-off-by: Tapasweni Pathak <
[email protected]
>
Reviewed-by: Himangi Saraogi <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/vt6655/aes_ccmp.c
patch
|
blob
|
history
diff --git
a/drivers/staging/vt6655/aes_ccmp.c
b/drivers/staging/vt6655/aes_ccmp.c
index b619bc0f12d7b5006bc61265e44558315f08c631..1dfcfcb3c69ce5b69dee4ea2f9db2e3148d141ff 100644
(file)
--- a/
drivers/staging/vt6655/aes_ccmp.c
+++ b/
drivers/staging/vt6655/aes_ccmp.c
@@
-370,7
+370,5
@@
bool AESbGenCCMP(unsigned char *pbyRxKey, unsigned char *pbyFrame, unsigned shor
/* =>above is the dec-MIC from packet */
/* -------------------------------------------- */
- if (!memcmp(abyMIC, abyTmp, 8))
- return true;
- return false;
+ return !memcmp(abyMIC, abyTmp, 8);
}