|
@@ -104,8 +104,6 @@ static int xenbus_uevent_backend(struct device *dev,
|
|
|
|
|
|
xdev = to_xenbus_device(dev);
|
|
xdev = to_xenbus_device(dev);
|
|
bus = container_of(xdev->dev.bus, struct xen_bus_type, bus);
|
|
bus = container_of(xdev->dev.bus, struct xen_bus_type, bus);
|
|
- if (xdev == NULL)
|
|
|
|
- return -ENODEV;
|
|
|
|
|
|
|
|
if (add_uevent_var(env, "MODALIAS=xen-backend:%s", xdev->devicetype))
|
|
if (add_uevent_var(env, "MODALIAS=xen-backend:%s", xdev->devicetype))
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|