X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=discover%2Fdevice-handler.c;h=12bc40f7283a83bf24dac77e3e4f0f353deb55af;hp=0783181147edab9f0f8c6b7de9fa2ea35c516cb8;hb=7fed96b80c3e81ad73539c90310ab94166ff0229;hpb=f1dad9c1eb7cdc583a56734e9d46a1ce5bb755d5 diff --git a/discover/device-handler.c b/discover/device-handler.c index 0783181..12bc40f 100644 --- a/discover/device-handler.c +++ b/discover/device-handler.c @@ -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"); - 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);