]> git.ozlabs.org Git - petitboot/blobdiff - discover/device-handler.c
pb-discover: Ignore ram, loop and no-name devices
[petitboot] / discover / device-handler.c
index 0783181147edab9f0f8c6b7de9fa2ea35c516cb8..12bc40f7283a83bf24dac77e3e4f0f353deb55af 100644 (file)
@@ -294,11 +294,7 @@ static int handle_add_udev_event(struct device_handler *handler,
        ctx->id = talloc_strdup(ctx, event->device);
 
        devname = event_get_param(ctx->event, "DEVNAME");
        ctx->id = talloc_strdup(ctx, event->device);
 
        devname = event_get_param(ctx->event, "DEVNAME");
-       if (!devname) {
-               pb_log("no devname for %s?\n", event->device);
-               return 0;
-       }
-
+       assert(devname);
        ctx->device_path = talloc_strdup(ctx, devname);
 
        rc = mount_device(ctx);
        ctx->device_path = talloc_strdup(ctx, devname);
 
        rc = mount_device(ctx);