usb: remove dead assignments, spotted by clang analyzer
Value stored is never read.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
bt: remove dead assignments, spotted by clang analyzer
Fix harmless if statement with empty body, spotted by clang
This clang error is harmless but worth fixing: CC libhw32/rc4030.o/src/qemu/hw/rc4030.c:244:66: error: if statement has empty body [-Wempty-body] DPRINTF;...
Remove un-needed code
The bdrv_set_geometry_hint call below is not needed - it's just settingwhat was just read.
Signed-off-by: Bruce Rogers <brogers@novell.com>Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Replace calls of old bdrv_open
What is known today as bdrv_open2 becomes the new bdrv_open. All remainingcallers of the old function are converted to the new one. In some places theyeven know the right format, so they should have used bdrv_open2 from the...
Make qemu-config available for tools
To be able to use config files for blkdebug, we need to make these functionsavailable in the tools. This involves moving two functions that can only bebuilt in the context of the emulator.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
bt-sdp: Fix an excessive ; and assignment of the wrong variable
Problem-spotted-by: Blue Swirl <blauwirbel@gmail.com>Signed-off-by: Andrew Zaborowski <balrogg@gmail.com>
bt-l2cap: fix if statement with empty body, spotted by clang
Fix clang error: CC bt-l2cap.o/src/qemu/hw/bt-l2cap.c:1000:41: error: if statement has empty body[-Wempty-body] /* TODO: Signal an error? */;
This means that l2cap_sframe_in() may now get called....
pci: fix pci_find_bus().
When looking down child bus, it should look parent bridge'sbus number, not child bus's.Optimized tail recursion and style fix.
Cc: Blue Swirl <blauwirbel@gmail.com>Cc: "Michael S. Tsirkin" <mst@redhat.com>Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>...
Check for invalid initrd file
When qemu is invoked with an invalid initrd file, it crashes. Followingpatch prints a error message and exits if an invalid initrd isspecified. Includes changes suggested by JV.
Signed-off-by: M. Mohan Kumar <mohan@in.ibm.com>...
View revisions
Also available in: Atom