[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] suppress a couple of spurious warnings in scsi-gene

From: Ian Jackson
Subject: [Qemu-devel] [PATCH] suppress a couple of spurious warnings in scsi-generic.c
Date: Thu, 28 Aug 2008 17:39:56 +0100

This patch fixes two spurious `may be used uninitialised' warnings
when compiling with some compilers.
Signed-off-by: Andre Przywara <address@hidden>
Signed-off-by: Ian Jackson <address@hidden>
(Manually cherry-picked from qemu-xen master

diff --git a/hw/scsi-generic.c b/hw/scsi-generic.c
index 60084cf..3973c25 100644
--- a/hw/scsi-generic.c
+++ b/hw/scsi-generic.c
@@ -478,8 +478,8 @@ static int32_t scsi_send_command(SCSIDevice *d, uint32_t 
                                  uint8_t *cmd, int lun)
     SCSIDeviceState *s = d->state;
-    uint32_t len;
-    int cmdlen;
+    uint32_t len=0;
+    int cmdlen=0;
     SCSIRequest *r;
     int ret;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]