Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d98b15db authored by Konrad Rzeszutek Wilk's avatar Konrad Rzeszutek Wilk
Browse files

xen/xenbus: Remove the unnecessary check.



.. we check whether 'xdev' is NULL - but there is no need for
it as the 'dev' check is done before. The 'dev' is embedded in
the 'xdev' so having xdev != NULL with dev being being checked
is not going to happen.

Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
parent e6599225
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -104,8 +104,6 @@ static int xenbus_uevent_backend(struct device *dev,

	xdev = to_xenbus_device(dev);
	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))
		return -ENOMEM;