* grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
used variable. * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size): Likewise.
This commit is contained in:
parent
3ae17eb83c
commit
49a45021c1
3 changed files with 11 additions and 5 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
|
||||||
|
used variable.
|
||||||
|
* grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
|
||||||
|
Likewise.
|
||||||
|
|
||||||
2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
|
2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
|
Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
|
||||||
|
|
|
@ -30,7 +30,6 @@ grub_ia64_dl_get_tramp_got_size (const void *ehdr, grub_size_t *tramp,
|
||||||
const Elf64_Ehdr *e = ehdr;
|
const Elf64_Ehdr *e = ehdr;
|
||||||
grub_size_t cntt = 0, cntg = 0;;
|
grub_size_t cntt = 0, cntg = 0;;
|
||||||
const Elf64_Shdr *s;
|
const Elf64_Shdr *s;
|
||||||
Elf64_Word entsize;
|
|
||||||
unsigned i;
|
unsigned i;
|
||||||
|
|
||||||
/* Find a symbol table. */
|
/* Find a symbol table. */
|
||||||
|
@ -43,8 +42,6 @@ grub_ia64_dl_get_tramp_got_size (const void *ehdr, grub_size_t *tramp,
|
||||||
if (i == grub_le_to_cpu16 (e->e_shnum))
|
if (i == grub_le_to_cpu16 (e->e_shnum))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
entsize = s->sh_entsize;
|
|
||||||
|
|
||||||
for (i = 0, s = (Elf64_Shdr *) ((char *) e + grub_le_to_cpu32 (e->e_shoff));
|
for (i = 0, s = (Elf64_Shdr *) ((char *) e + grub_le_to_cpu32 (e->e_shoff));
|
||||||
i < grub_le_to_cpu16 (e->e_shnum);
|
i < grub_le_to_cpu16 (e->e_shnum);
|
||||||
i++, s = (Elf64_Shdr *) ((char *) s + grub_le_to_cpu16 (e->e_shentsize)))
|
i++, s = (Elf64_Shdr *) ((char *) s + grub_le_to_cpu16 (e->e_shentsize)))
|
||||||
|
|
|
@ -1994,13 +1994,15 @@ static SRes LzmaEnc_CodeOneBlock(CLzmaEnc *p, Bool useLimits, UInt32 maxPackSize
|
||||||
static SRes LzmaEnc_Alloc(CLzmaEnc *p, UInt32 keepWindowSize, ISzAlloc *alloc, ISzAlloc *allocBig)
|
static SRes LzmaEnc_Alloc(CLzmaEnc *p, UInt32 keepWindowSize, ISzAlloc *alloc, ISzAlloc *allocBig)
|
||||||
{
|
{
|
||||||
UInt32 beforeSize = kNumOpts;
|
UInt32 beforeSize = kNumOpts;
|
||||||
|
#ifdef COMPRESS_MF_MT
|
||||||
Bool btMode;
|
Bool btMode;
|
||||||
|
#endif
|
||||||
if (!RangeEnc_Alloc(&p->rc, alloc))
|
if (!RangeEnc_Alloc(&p->rc, alloc))
|
||||||
return SZ_ERROR_MEM;
|
return SZ_ERROR_MEM;
|
||||||
|
#ifdef COMPRESS_MF_MT
|
||||||
btMode = (p->matchFinderBase.btMode != 0);
|
btMode = (p->matchFinderBase.btMode != 0);
|
||||||
#ifdef COMPRESS_MF_MT
|
|
||||||
p->mtMode = (p->multiThread && !p->fastMode && btMode);
|
p->mtMode = (p->multiThread && !p->fastMode && btMode);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
{
|
{
|
||||||
unsigned lclp = p->lc + p->lp;
|
unsigned lclp = p->lc + p->lp;
|
||||||
|
|
Loading…
Reference in a new issue