From fd7dcd3997fc130226163c6fc5b085ebeb7d2e02 Mon Sep 17 00:00:00 2001 From: Tapasweni Pathak Date: Sun, 28 Sep 2014 18:05:05 +0530 Subject: [PATCH] staging: vt6655: Merge three lines into one This patch merges three lines into one, removing unecessary if check. Signed-off-by: Tapasweni Pathak Reviewed-by: Himangi Saraogi Signed-off-by: Greg Kroah-Hartman --- drivers/staging/vt6655/aes_ccmp.c | 4 +--- 1 file changed, 1 insertion(+), 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); } -- 2.39.5