提交 425eaf47 编写于 作者: D David Kershner 提交者: Greg Kroah-Hartman

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: NDavid Kershner <david.kershner@unisys.com>
Reviewed-by: NTim Sell <timothy.sell@unisys.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 d7f1589a
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册