diff options
| author | 2014-09-28 18:05:05 +0530 | |
|---|---|---|
| committer | 2014-09-28 23:22:21 -0400 | |
| commit | fd7dcd3997fc130226163c6fc5b085ebeb7d2e02 (patch) | |
| tree | 4e0dbda4a9efccd3bdc4b3284ca8d673f3d1a251 | |
| parent | staging: vt6656: Merge three lines into one (diff) | |
staging: vt6655: Merge three lines into one
This patch merges three lines into one, removing unecessary
if check.
Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com>
Reviewed-by: Himangi Saraogi <himangi774@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -rw-r--r-- | drivers/staging/vt6655/aes_ccmp.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/vt6655/aes_ccmp.c b/drivers/staging/vt6655/aes_ccmp.c index b619bc0f12d7..1dfcfcb3c69c 100644 --- 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); } |
