summaryrefslogtreecommitdiff
path: root/kern/slab.c
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-11-19 07:34:19 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-11-19 20:41:52 +0100
commitda72db8811807d5d63ac97a1e3a7177205f241ee (patch)
tree67e2588a5738b4f306172660557dc4c5baa6d2ea /kern/slab.c
parente27673af1c84e523b387d79bbff804889b7763be (diff)
kern/slab.c: initialize optimal_embed
optimal_embed is initialized to a random value. Quiet the warning by initializing to zero. * kern/slab.c (optimal_embed): Initialize to zero.
Diffstat (limited to 'kern/slab.c')
-rw-r--r--kern/slab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kern/slab.c b/kern/slab.c
index 47c2c8f..2ef82cd 100644
--- a/kern/slab.c
+++ b/kern/slab.c
@@ -704,7 +704,7 @@ static void kmem_cache_compute_sizes(struct kmem_cache *cache, int flags)
{
size_t i, buffers, buf_size, slab_size, free_slab_size, optimal_size;
size_t waste, waste_min;
- int embed, optimal_embed = optimal_embed;
+ int embed, optimal_embed = 0;
buf_size = cache->buf_size;