staging: vt6655: Merge three lines into one
authorTapasweni Pathak <tapaswenipathak@gmail.com>
Sun, 28 Sep 2014 12:35:05 +0000 (18:05 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
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 <tapaswenipathak@gmail.com>
Reviewed-by: Himangi Saraogi <himangi774@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/aes_ccmp.c

index b619bc0..1dfcfcb 100644 (file)
@@ -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);
 }