Browse Source

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>
Tapasweni Pathak 11 years ago
parent
commit
fd7dcd3997
1 changed files with 1 additions and 3 deletions
  1. 1 3
      drivers/staging/vt6655/aes_ccmp.c

+ 1 - 3
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);
 }