Revision e6b3c8ca

b/hw/realview.c
288 288
    for(n = 0; n < nb_nics; n++) {
289 289
        nd = &nd_table[n];
290 290

  
291
        if ((!nd->model && !done_nic)
292
            || strcmp(nd->model, is_pb ? "lan9118" : "smc91c111") == 0) {
291
        if (!done_nic && (!nd->model ||
292
                    strcmp(nd->model, is_pb ? "lan9118" : "smc91c111") == 0)) {
293 293
            if (is_pb) {
294 294
                lan9118_init(nd, 0x4e000000, pic[28]);
295 295
            } else {
b/hw/versatilepb.c
223 223
    for(n = 0; n < nb_nics; n++) {
224 224
        nd = &nd_table[n];
225 225

  
226
        if ((!nd->model && !done_smc) || strcmp(nd->model, "smc91c111") == 0) {
226
        if (!done_smc && (!nd->model || strcmp(nd->model, "smc91c111") == 0)) {
227 227
            smc91c111_init(nd, 0x10010000, sic[25]);
228 228
            done_smc = 1;
229 229
        } else {

Also available in: Unified diff