From c5768773267e1534c805b9fd7013f5e42a94cfee Mon Sep 17 00:00:00 2001 From: tedu Date: Thu, 17 Apr 2014 20:44:45 +0000 Subject: [PATCH] unused variable --- lib/libcrypto/malloc-wrapper.c | 4 +--- lib/libssl/src/crypto/malloc-wrapper.c | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/libcrypto/malloc-wrapper.c b/lib/libcrypto/malloc-wrapper.c index 49d7c572c88..c754df40e36 100644 --- a/lib/libcrypto/malloc-wrapper.c +++ b/lib/libcrypto/malloc-wrapper.c @@ -1,4 +1,4 @@ -/* $OpenBSD: malloc-wrapper.c,v 1.1 2014/04/16 03:24:53 beck Exp $ */ +/* $OpenBSD: malloc-wrapper.c,v 1.2 2014/04/17 20:44:45 tedu Exp $ */ /* * Copyright (c) 2014 Bob Beck * @@ -118,8 +118,6 @@ CRYPTO_get_mem_debug_functions(void (**m)(void *, int, const char *, int, int), void * CRYPTO_malloc_locked(int num, const char *file, int line) { - void *ret = NULL; - if (num <= 0) return NULL; return malloc(num); diff --git a/lib/libssl/src/crypto/malloc-wrapper.c b/lib/libssl/src/crypto/malloc-wrapper.c index 49d7c572c88..c754df40e36 100644 --- a/lib/libssl/src/crypto/malloc-wrapper.c +++ b/lib/libssl/src/crypto/malloc-wrapper.c @@ -1,4 +1,4 @@ -/* $OpenBSD: malloc-wrapper.c,v 1.1 2014/04/16 03:24:53 beck Exp $ */ +/* $OpenBSD: malloc-wrapper.c,v 1.2 2014/04/17 20:44:45 tedu Exp $ */ /* * Copyright (c) 2014 Bob Beck * @@ -118,8 +118,6 @@ CRYPTO_get_mem_debug_functions(void (**m)(void *, int, const char *, int, int), void * CRYPTO_malloc_locked(int num, const char *file, int line) { - void *ret = NULL; - if (num <= 0) return NULL; return malloc(num); -- 2.20.1