Removed unnecessary NULL check in Digest::SHA
Andy Lester [Tue, 7 Mar 2006 12:12:35 +0000 (06:12 -0600)]
Message-ID: <20060307181235.GA25688@petdance.com>

p4raw-id: //depot/perl@27482

ext/Digest/SHA/src/hmac.c

index 60e1ba0..cec74a2 100644 (file)
@@ -106,9 +106,7 @@ int hmacclose(h)
 HMAC *h;
 {
        shaclose(h->osha);
-       if (h != NULL) {
-               memset(h, 0, sizeof(HMAC));
-               SHA_free(h);
-       }
+       memset(h, 0, sizeof(HMAC));
+       SHA_free(h);
        return(0);
 }