mirror of
https://src.fedoraproject.org/rpms/grub2.git
synced 2024-12-01 00:48:18 +00:00
There's another unused variable that some GCC versions complain about...
This commit is contained in:
parent
1fcd613638
commit
624cc16288
1 changed files with 24 additions and 2 deletions
|
@ -4,8 +4,9 @@ Date: Wed, 2 Mar 2011 13:47:04 -0500
|
||||||
Subject: [PATCH] Get rid of unused variable in zfs.
|
Subject: [PATCH] Get rid of unused variable in zfs.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
grub-core/mmap/efi/mmap.c | 3 +--
|
||||||
grub-core/fs/zfs/zfs.c | 2 --
|
grub-core/fs/zfs/zfs.c | 2 --
|
||||||
1 files changed, 0 insertions(+), 2 deletions(-)
|
2 files changed, 1 insertion(+), 4 deletions(-)
|
||||||
|
|
||||||
diff --git a/grub-core/fs/zfs/zfs.c b/grub-core/fs/zfs/zfs.c
|
diff --git a/grub-core/fs/zfs/zfs.c b/grub-core/fs/zfs/zfs.c
|
||||||
index 5b575f3..3a94d88 100644
|
index 5b575f3..3a94d88 100644
|
||||||
|
@ -26,6 +27,27 @@ index 5b575f3..3a94d88 100644
|
||||||
|
|
||||||
*value = grub_be_to_cpu64 (la->la_array64);
|
*value = grub_be_to_cpu64 (la->la_array64);
|
||||||
|
|
||||||
|
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
|
||||||
--
|
--
|
||||||
1.7.3.1
|
1.7.3.1
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue