From: Tapasweni Pathak Date: Sun, 28 Sep 2014 12:35:05 +0000 (+0530) Subject: staging: vt6655: Merge three lines into one X-Git-Tag: v3.18-rc1~130^2~130 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd7dcd3997fc130226163c6fc5b085ebeb7d2e02;p=thirdparty%2Flinux.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 b619bc0f12d7b..1dfcfcb3c69ce 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); }