Revision e6b3c8ca hw/realview.c

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 {

Also available in: Unified diff