Fix uninit variable in slab reclaim test

Gcc version 4.7.0 reports the delta.tv_sec in the slab reclaim test
as potentially unitialized.  In practice this will never occur but
to keep gcc happy we initialize the variable to zero.

Signed-off-by: Brian Behlendorf <behlendo@fedora-17-amd64.(none)>
This commit is contained in:
Brian Behlendorf 2012-06-13 13:43:29 -07:00 committed by Brian Behlendorf
parent 2371321e8a
commit eaac9ba510

View File

@ -1135,7 +1135,7 @@ splat_kmem_test13(struct file *file, void *arg)
kmem_cache_data_t *kcd; kmem_cache_data_t *kcd;
dummy_page_t *dp; dummy_page_t *dp;
struct list_head list; struct list_head list;
struct timespec start, delta; struct timespec start, delta = { 0, 0 };
int size, count, slabs, fails = 0; int size, count, slabs, fails = 0;
int i, rc = 0, max_time = 10; int i, rc = 0, max_time = 10;