From 7fed96b80c3e81ad73539c90310ab94166ff0229 Mon Sep 17 00:00:00 2001 From: Geoff Levand Date: Mon, 26 Mar 2012 20:18:32 -0700 Subject: pb-discover: Ignore ram, loop and no-name devices Signed-off-by: Geoff Levand --- discover/device-handler.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'discover/device-handler.c') 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); -- cgit v1.2.1