From: Tapasweni Pathak Date: Sun, 28 Sep 2014 12:35:05 +0000 (+0530) Subject: staging: vt6655: Merge three lines into one X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=fd7dcd3997fc130226163c6fc5b085ebeb7d2e02;p=linux-beck.git 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 --- 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); }