Browse code

tls: remove unnecessary fetch of ticks without storage

Daniel-Constantin Mierla authored on 12/03/2019 13:03:06
Showing 1 changed files
... ...
@@ -76,9 +76,7 @@ inline static int sbufq_add(struct sbuffer_queue* q, const void* data,
76 76
 	unsigned int last_free;
77 77
 	unsigned int b_size;
78 78
 	unsigned int crt_size;
79
-	
80
-	get_ticks_raw();
81
-	
79
+
82 80
 	if (likely(q->last==0)) {
83 81
 		b_size=MAX_unsigned(min_buf_size, size);
84 82
 		b=shm_malloc(sizeof(*b)+b_size-sizeof(b->buf));
... ...
@@ -97,7 +95,7 @@ inline static int sbufq_add(struct sbuffer_queue* q, const void* data,
97 97
 	}else{
98 98
 		b=q->last;
99 99
 	}
100
-	
100
+
101 101
 	while(size){
102 102
 		last_free=b->b_size-q->last_used;
103 103
 		if (last_free==0){