From: "Jan Beulich" Subject: [PATCH qemu-trad] cirrus: fix an uninitialized variable Date: Mon, 02 Feb 2015 16:49:59 +0000 Message-ID: <54CFB8C7020000780005C195@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__PartFECB68A7.1__=" Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YIKCK-0000dx-1N for xen-devel@lists.xenproject.org; Mon, 02 Feb 2015 16:50:04 +0000 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel Cc: Ian Jackson List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__PartFECB68A7.1__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Noticed by paying attention to a compiler warning (reported for the only caller of the function modified, vga_ioport_read()). Signed-off-by: Jan Beulich --- a/hw/cirrus_vga.c +++ b/hw/cirrus_vga.c @@ -1658,8 +1658,8 @@ cirrus_hook_read_cr(CirrusVGAState * s,=20 default: #ifdef DEBUG_CIRRUS printf("cirrus: inport cr_index %02x\n", reg_index); - *reg_value =3D 0xff; #endif + *reg_value =3D 0xff; break; } =20 --=__PartFECB68A7.1__= Content-Type: text/plain; name="qemu-trad-cirrus-leak.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="qemu-trad-cirrus-leak.patch" cirrus: fix an uninitialized variable=0A=0ANoticed by paying attention to = a compiler warning (reported for the=0Aonly caller of the function = modified, vga_ioport_read()).=0A=0ASigned-off-by: Jan Beulich =0A=0A--- a/hw/cirrus_vga.c=0A+++ b/hw/cirrus_vga.c=0A@@ -1658,8 = +1658,8 @@ cirrus_hook_read_cr(CirrusVGAState * s, =0A default:=0A = #ifdef DEBUG_CIRRUS=0A printf("cirrus: inport cr_index %02x\n", reg_index)= ;=0A- *reg_value =3D 0xff;=0A #endif=0A+ *reg_value =3D 0xff;=0A = break;=0A }=0A =0A --=__PartFECB68A7.1__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --=__PartFECB68A7.1__=--