2011-03-03 22:08:24 +00:00
|
|
|
From 755da11214d4695fbf8245d6d591ae633cadc791 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Peter Jones <pjones@redhat.com>
|
|
|
|
Date: Wed, 2 Mar 2011 13:47:04 -0500
|
|
|
|
Subject: [PATCH] Get rid of unused variable in zfs.
|
|
|
|
|
|
|
|
---
|
2011-03-10 18:21:52 +00:00
|
|
|
grub-core/mmap/efi/mmap.c | 3 +--
|
|
|
|
grub-core/fs/zfs/zfs.c | 2 --
|
|
|
|
2 files changed, 1 insertion(+), 4 deletions(-)
|
2011-03-03 22:08:24 +00:00
|
|
|
|
|
|
|
diff --git a/grub-core/fs/zfs/zfs.c b/grub-core/fs/zfs/zfs.c
|
|
|
|
index 5b575f3..3a94d88 100644
|
|
|
|
--- a/grub-core/fs/zfs/zfs.c
|
|
|
|
+++ b/grub-core/fs/zfs/zfs.c
|
|
|
|
@@ -837,14 +837,12 @@ zap_leaf_lookup (zap_leaf_phys_t * l, grub_zfs_endian_t endian,
|
|
|
|
name))
|
|
|
|
{
|
|
|
|
struct zap_leaf_array *la;
|
|
|
|
- grub_uint8_t *ip;
|
|
|
|
|
|
|
|
if (le->le_int_size != 8 || le->le_value_length != 1)
|
|
|
|
return grub_error (GRUB_ERR_BAD_FS, "invalid leaf chunk entry");
|
|
|
|
|
|
|
|
/* get the uint64_t property value */
|
|
|
|
la = &ZAP_LEAF_CHUNK (l, blksft, le->le_value_chunk).l_array;
|
|
|
|
- ip = la->la_array;
|
|
|
|
|
|
|
|
*value = grub_be_to_cpu64 (la->la_array64);
|
|
|
|
|
2011-03-10 18:21:52 +00:00
|
|
|
diff --git a/grub-core/mmap/efi/mmap.c b/grub-core/mmap/efi/mmap.c
|
|
|
|
index 5b82a87..8e5cce0 100644
|
|
|
|
--- a/grub-core/mmap/efi/mmap.c
|
|
|
|
+++ b/grub-core/mmap/efi/mmap.c
|
|
|
|
@@ -194,7 +194,6 @@ grub_mmap_unregister (int handle)
|
|
|
|
{
|
|
|
|
struct overlay *curover, *prevover;
|
|
|
|
grub_efi_boot_services_t *b;
|
|
|
|
- grub_efi_status_t status;
|
|
|
|
|
|
|
|
b = grub_efi_system_table->boot_services;
|
|
|
|
|
|
|
|
@@ -204,7 +203,7 @@ grub_mmap_unregister (int handle)
|
|
|
|
{
|
|
|
|
if (curover->handle == handle)
|
|
|
|
{
|
|
|
|
- status = efi_call_2 (b->free_pages, curover->address, curover->pages);
|
|
|
|
+ efi_call_2 (b->free_pages, curover->address, curover->pages);
|
|
|
|
if (prevover != 0)
|
|
|
|
prevover->next = curover->next;
|
|
|
|
else
|
2011-03-03 22:08:24 +00:00
|
|
|
--
|
|
|
|
1.7.3.1
|
|
|
|
|