From b0541176da573f0c4bcdf2852c67f65c36c9a82f Mon Sep 17 00:00:00 2001 From: Bob Supnik Date: Tue, 14 Mar 2017 18:20:46 -0700 Subject: [PATCH] alpha: Fix Coverity identified Defect: 1416171 --- alpha/alpha_ev5_pal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/alpha/alpha_ev5_pal.c b/alpha/alpha_ev5_pal.c index 4910b0ce..5b1b5186 100644 --- a/alpha/alpha_ev5_pal.c +++ b/alpha/alpha_ev5_pal.c @@ -172,7 +172,7 @@ DEVICE ev5pal_dev = { NULL, NULL, &pal_proc_reset_hwre, NULL, NULL, NULL, NULL, DEV_DIS - }; + }; /* EV5 interrupt dispatch - reached from top of instruction loop - dispatch to PALcode */ @@ -365,7 +365,7 @@ if (ir & HW_LD_V) { /* virtual? */ res = SEXT_L_Q (res); } } -else if (ir & HW_LD_Q) R[ra] = ReadPQ (ea); /* physical, quad? */ +else if (ir & HW_LD_Q) res = ReadPQ (ea); /* physical, quad? */ else { res = ReadPL (ea); /* long, sext */ res = SEXT_L_Q (res);