mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
Remove repeated code and enable encrypted SD cards and USB sticks images.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2750 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
c1713132e0
commit
2bac601963
4 changed files with 29 additions and 25 deletions
|
@ -522,6 +522,8 @@ USBDevice *usb_msd_init(const char *filename)
|
|||
bdrv = bdrv_new("usb");
|
||||
if (bdrv_open(bdrv, filename, 0) < 0)
|
||||
goto fail;
|
||||
if (qemu_key_check(bdrv, filename))
|
||||
goto fail;
|
||||
s->bs = bdrv;
|
||||
|
||||
s->dev.speed = USB_SPEED_FULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue