Removed unnecessary NULL check in Digest::SHA
authorAndy Lester <andy@petdance.com>
Tue, 7 Mar 2006 12:12:35 +0000 (06:12 -0600)
committerSteve Peters <steve@fisharerojo.org>
Sun, 12 Mar 2006 14:07:17 +0000 (14:07 +0000)
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);
 }