diff options
author | Mike Larkin <mlarkin@cvs.openbsd.org> | 2014-04-19 16:19:08 +0000 |
---|---|---|
committer | Mike Larkin <mlarkin@cvs.openbsd.org> | 2014-04-19 16:19:08 +0000 |
commit | 9d2ec9dc92243388d02facd99aca04921208febb (patch) | |
tree | 7e5b79eecc9bc11e81845dcd1cc7443cc8938cc2 /sys/kern | |
parent | 36fb31b2d7a83fd7a92d1ebaca4b2b9c87ec2cfa (diff) |
Dead stores in subr_hibernate.c
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/subr_hibernate.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/sys/kern/subr_hibernate.c b/sys/kern/subr_hibernate.c index cc59ead8463..6a791745435 100644 --- a/sys/kern/subr_hibernate.c +++ b/sys/kern/subr_hibernate.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_hibernate.c,v 1.86 2014/03/21 21:39:36 miod Exp $ */ +/* $OpenBSD: subr_hibernate.c,v 1.87 2014/04/19 16:19:07 mlarkin Exp $ */ /* * Copyright (c) 2011 Ariane van der Steldt <ariane@stack.nl> @@ -1640,7 +1640,7 @@ hibernate_read_chunks(union hibernate_info *hib, paddr_t pig_start, struct hibernate_disk_chunk *chunks) { paddr_t img_index, img_cur, r1s, r1e, r2s, r2e; - paddr_t copy_start, copy_end, piglet_cur; + paddr_t copy_start, copy_end; paddr_t piglet_base = hib->piglet_pa; paddr_t piglet_end = piglet_base + HIBERNATE_CHUNK_SIZE; daddr_t blkctr; @@ -1757,13 +1757,10 @@ hibernate_read_chunks(union hibernate_info *hib, paddr_t pig_start, if (chunks[ochunks[i]].flags & HIBERNATE_CHUNK_CONFLICT) { copy_start = piglet_base; copy_end = piglet_end; - piglet_cur = piglet_base; npchunks = 0; j = i; while (copy_start < copy_end && j < nochunks) { - piglet_cur += - chunks[ochunks[j]].compressed_size; pchunks[npchunks] = ochunks[j]; npchunks++; copy_start += @@ -1773,10 +1770,7 @@ hibernate_read_chunks(union hibernate_info *hib, paddr_t pig_start, j++; } - piglet_cur = piglet_base; for (j = 0; j < npchunks; j++) { - piglet_cur += - chunks[pchunks[j]].compressed_size; fchunks[nfchunks] = pchunks[j]; chunks[pchunks[j]].flags |= HIBERNATE_CHUNK_USED; @@ -1799,7 +1793,6 @@ hibernate_read_chunks(union hibernate_info *hib, paddr_t pig_start, img_index = pig_start; for (i = 0; i < nfchunks; i++) { - piglet_cur = piglet_base; img_index += chunks[fchunks[i]].compressed_size; } |