netdev: Add classes which don't require initialization.
authorJesse Gross <jesse@nicira.com>
Tue, 4 Aug 2009 00:04:43 +0000 (17:04 -0700)
committerJesse Gross <jesse@nicira.com>
Wed, 30 Sep 2009 19:43:19 +0000 (12:43 -0700)
If a class requires does not require initialization, still add it
to the list of netdev classes.

lib/netdev.c

index 5724f4953b2a245470a2d0d66c3ed78af18f1ad3..481671f798e1c9d3a518ebed0df4babc62e0f49f 100644 (file)
@@ -83,6 +83,8 @@ netdev_initialize(void)
                         status = retval;
                     }
                 }
+            } else {
+                netdev_classes[j++] = class;
             }
         }
         n_netdev_classes = j;