提交 37e828b4 编写于 作者: A aurel32

suppress a couple of spurious warnings in scsi-generic.c

This patch fixes two spurious `may be used uninitialised' warnings
when compiling with some compilers.
Signed-off-by: NAndre Przywara <andre.przywara@amd.com>
Signed-off-by: NIan Jackson <ian.jackson@eu.citrix.com>
Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5127 c046a42c-6fe2-441c-8c8c-71466251a162
上级 17b086f7
......@@ -478,8 +478,8 @@ static int32_t scsi_send_command(SCSIDevice *d, uint32_t tag,
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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册