]> git.proxmox.com Git - qemu.git/blobdiff - hw/versatilepb.c
usb-ehci: Connect Status bit is read only, don't allow changing it by the guest
[qemu.git] / hw / versatilepb.c
index 9f1bfcf94143762f66b39747cdb96491767c9882..46b6a3f383e9249950c2877a5999d8c541f4dac9 100644 (file)
@@ -223,7 +223,7 @@ static void versatile_init(ram_addr_t ram_size,
     for(n = 0; n < nb_nics; n++) {
         nd = &nd_table[n];
 
-        if ((!nd->model && !done_smc) || strcmp(nd->model, "smc91c111") == 0) {
+        if (!done_smc && (!nd->model || strcmp(nd->model, "smc91c111") == 0)) {
             smc91c111_init(nd, 0x10010000, sic[25]);
             done_smc = 1;
         } else {