]> git.proxmox.com Git - mirror_qemu.git/commitdiff
hw/ppc/spapr_events: Remove unused variable from check_exception
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 12 Jul 2021 20:00:18 +0000 (20:00 +0000)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 26 Jul 2021 17:07:07 +0000 (07:07 -1000)
From clang-13:
hw/ppc/spapr_events.c:937:14: error: variable 'xinfo' set but not used \
    [-Werror,-Wunused-but-set-variable]

Acked-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
hw/ppc/spapr_events.c

index 0cfc19be196e5133a2f825432b09c27ea4813799..23e2e2fff17ae9559e05e6972cf911276c313e8f 100644 (file)
@@ -934,7 +934,6 @@ static void check_exception(PowerPCCPU *cpu, SpaprMachineState *spapr,
                             uint32_t nret, target_ulong rets)
 {
     uint32_t mask, buf, len, event_len;
-    uint64_t xinfo;
     SpaprEventLogEntry *event;
     struct rtas_error_log header;
     int i;
@@ -944,13 +943,9 @@ static void check_exception(PowerPCCPU *cpu, SpaprMachineState *spapr,
         return;
     }
 
-    xinfo = rtas_ld(args, 1);
     mask = rtas_ld(args, 2);
     buf = rtas_ld(args, 4);
     len = rtas_ld(args, 5);
-    if (nargs == 7) {
-        xinfo |= (uint64_t)rtas_ld(args, 6) << 32;
-    }
 
     event = rtas_event_log_dequeue(spapr, mask);
     if (!event) {