* grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used

variable.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2011-11-08 11:32:19 +01:00
parent ed64e9e279
commit 9f421dd1f0
2 changed files with 5 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
variable.
2011-11-08 Vladimir Serbinenko <phcoder@gmail.com> 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
Support trampoline jumps on powerpc. Support trampoline jumps on powerpc.

View file

@ -2164,14 +2164,12 @@ zap_iterate (dnode_end_t * zap_dnode,
struct grub_zfs_data *data) struct grub_zfs_data *data)
{ {
grub_uint64_t block_type; grub_uint64_t block_type;
int size;
void *zapbuf; void *zapbuf;
grub_err_t err; grub_err_t err;
int ret; int ret;
grub_zfs_endian_t endian; grub_zfs_endian_t endian;
/* Read in the first block of the zap object data. */ /* Read in the first block of the zap object data. */
size = grub_zfs_to_cpu16 (zap_dnode->dn.dn_datablkszsec, zap_dnode->endian) << SPA_MINBLOCKSHIFT;
err = dmu_read (zap_dnode, 0, &zapbuf, &endian, data); err = dmu_read (zap_dnode, 0, &zapbuf, &endian, data);
if (err) if (err)
return 0; return 0;