diff options
-rw-r--r-- | drivers/xen/xenbus/xenbus_probe_backend.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/xen/xenbus/xenbus_probe_backend.c b/drivers/xen/xenbus/xenbus_probe_backend.c index 60adf919d78d..32417b5064fd 100644 --- a/drivers/xen/xenbus/xenbus_probe_backend.c +++ b/drivers/xen/xenbus/xenbus_probe_backend.c | |||
@@ -104,8 +104,6 @@ static int xenbus_uevent_backend(struct device *dev, | |||
104 | 104 | ||
105 | xdev = to_xenbus_device(dev); | 105 | xdev = to_xenbus_device(dev); |
106 | bus = container_of(xdev->dev.bus, struct xen_bus_type, bus); | 106 | bus = container_of(xdev->dev.bus, struct xen_bus_type, bus); |
107 | if (xdev == NULL) | ||
108 | return -ENODEV; | ||
109 | 107 | ||
110 | if (add_uevent_var(env, "MODALIAS=xen-backend:%s", xdev->devicetype)) | 108 | if (add_uevent_var(env, "MODALIAS=xen-backend:%s", xdev->devicetype)) |
111 | return -ENOMEM; | 109 | return -ENOMEM; |