thebeanogamer / rpms / qemu-kvm

Forked from rpms/qemu-kvm 5 months ago
Clone

Blame SOURCES/kvm-multiboot-Remove-unused-variables-from-multiboot.c.patch

9ae3a8
From 863255a5677066edbfb2833372804284a64831d3 Mon Sep 17 00:00:00 2001
9ae3a8
From: Kevin Wolf <kwolf@redhat.com>
9ae3a8
Date: Thu, 26 Jul 2018 16:24:44 +0200
9ae3a8
Subject: [PATCH 2/8] multiboot: Remove unused variables from multiboot.c
9ae3a8
9ae3a8
RH-Author: Kevin Wolf <kwolf@redhat.com>
9ae3a8
Message-id: <20180726162448.22072-3-kwolf@redhat.com>
9ae3a8
Patchwork-id: 81516
9ae3a8
O-Subject: [RHEL-7.6/7.5.z qemu-kvm PATCH 2/6] multiboot: Remove unused variables from multiboot.c
9ae3a8
Bugzilla: 1549822
9ae3a8
RH-Acked-by: John Snow <jsnow@redhat.com>
9ae3a8
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
9ae3a8
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
9ae3a8
9ae3a8
From: Jack Schwartz <jack.schwartz@oracle.com>
9ae3a8
9ae3a8
Remove unused variables: mh_mode_type, mh_width, mh_height, mh_depth
9ae3a8
9ae3a8
Signed-off-by: Jack Schwartz <jack.schwartz@oracle.com>
9ae3a8
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
9ae3a8
Reviewed-by: Prasad J Pandit <pjp@fedoraproject.org>
9ae3a8
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
9ae3a8
(cherry picked from commit 7a2e43cc96fd017883973caf9ee076ae23a3bebd)
9ae3a8
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
9ae3a8
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
9ae3a8
---
9ae3a8
 hw/i386/multiboot.c | 6 ------
9ae3a8
 1 file changed, 6 deletions(-)
9ae3a8
9ae3a8
diff --git a/hw/i386/multiboot.c b/hw/i386/multiboot.c
9ae3a8
index 9a9a2e1..ee2ebd1 100644
9ae3a8
--- a/hw/i386/multiboot.c
9ae3a8
+++ b/hw/i386/multiboot.c
9ae3a8
@@ -234,12 +234,6 @@ int load_multiboot(FWCfgState *fw_cfg,
9ae3a8
             mb_kernel_size = mb_load_size;
9ae3a8
         }
9ae3a8
 
9ae3a8
-        /* Valid if mh_flags sets MULTIBOOT_HEADER_HAS_VBE.
9ae3a8
-        uint32_t mh_mode_type = ldl_p(header+i+32);
9ae3a8
-        uint32_t mh_width = ldl_p(header+i+36);
9ae3a8
-        uint32_t mh_height = ldl_p(header+i+40);
9ae3a8
-        uint32_t mh_depth = ldl_p(header+i+44); */
9ae3a8
-
9ae3a8
         mb_debug("multiboot: mh_header_addr = %#x\n", mh_header_addr);
9ae3a8
         mb_debug("multiboot: mh_load_addr = %#x\n", mh_load_addr);
9ae3a8
         mb_debug("multiboot: mh_load_end_addr = %#x\n", mh_load_end_addr);
9ae3a8
-- 
9ae3a8
1.8.3.1
9ae3a8