ref: 679555dbb5cc3eb650566395231e3f01167d6976
parent: 83e4263979931e434d56e0e50bdc663db98239bb
author: cinap_lenrek <[email protected]>
date: Tue Jan 22 17:50:35 EST 2019
devtls: remove static "already" flag in tlsinit(). this function is only run once. (from 9front)
--- a/kern/devtls.c
+++ b/kern/devtls.c
@@ -1790,12 +1790,8 @@
struct Hashalg *h;
int n;
char *cp;
- static int already;
- if(!already){
- fmtinstall('H', encodefmt);
- already = 1;
- }
+ fmtinstall('H', encodefmt);
tlsdevs = smalloc(sizeof(TlsRec*) * maxtlsdevs);
trnames = smalloc((sizeof *trnames) * maxtlsdevs);