staging: vt6655: remove unnecessary else after return
authorTapasweni Pathak <tapaswenipathak@gmail.com>
Mon, 22 Sep 2014 09:20:45 +0000 (14:50 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Sep 2014 20:41:15 +0000 (13:41 -0700)
This patch fixes checkpatch.pl warning in aes_ccmp.c file
WARNING : else is not generally useful after a break or return

Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/aes_ccmp.c

index a25e6cf844ed115572d843fe2e7d5d999c3b7cb6..b619bc0f12d7b5006bc61265e44558315f08c631 100644 (file)
@@ -372,6 +372,5 @@ bool AESbGenCCMP(unsigned char *pbyRxKey, unsigned char *pbyFrame, unsigned shor
 
        if (!memcmp(abyMIC, abyTmp, 8))
                return true;
-       else
-               return false;
+       return false;
 }