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

Commit 425eaf47 authored by David Kershner's avatar David Kershner Committed by Greg Kroah-Hartman
Browse files

staging: unisys: visorbus: just check for GUID



Every channel_type must have a valid GUID, checking for the name was just
redundant.

Signed-off-by: default avatarDavid Kershner <david.kershner@unisys.com>
Reviewed-by: default avatarTim Sell <timothy.sell@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d7f1589a
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -151,9 +151,7 @@ static int visorbus_match(struct device *xdev, struct device_driver *xdrv)
	if (!drv->channel_types)
		return 0;

	for (i = 0;
	     !guid_is_null(&drv->channel_types[i].guid) || drv->channel_types[i].name;
	     i++)
	for (i = 0; !guid_is_null(&drv->channel_types[i].guid); i++)
		if (guid_equal(&drv->channel_types[i].guid, channel_type))
			return i + 1;