]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
random: Remove write-only variable random_entropy_file_read
authorJohannes Berg <johannes.berg@intel.com>
Wed, 22 Aug 2018 16:49:06 +0000 (19:49 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 2 Sep 2018 09:51:06 +0000 (12:51 +0300)
This variable is never read, so it's not needed. Remove it.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
src/crypto/random.c

index fb92417621ef500f8d68ad5967ad913907638c7c..c278d9cb9de94f3c2dc12ee6330d026dead11bf2 100644 (file)
@@ -54,7 +54,6 @@ static int random_fd = -1;
 static unsigned int own_pool_ready = 0;
 #define RANDOM_ENTROPY_SIZE 20
 static char *random_entropy_file = NULL;
-static int random_entropy_file_read = 0;
 
 #define MIN_COLLECT_ENTROPY 1000
 static unsigned int entropy = 0;
@@ -357,7 +356,6 @@ static void random_read_entropy(void)
 
        own_pool_ready = (u8) buf[0];
        random_add_randomness(buf + 1, RANDOM_ENTROPY_SIZE);
-       random_entropy_file_read = 1;
        os_free(buf);
        wpa_printf(MSG_DEBUG, "random: Added entropy from %s "
                   "(own_pool_ready=%u)",