staging: unisys: visorbus: use guid_is_equal instead of memcmp

The function publish_vbus_dev_info was doing a memcmp of guids. It should
be using the kernel provided guid_equal function instead.

Signed-off-by: David Kershner <david.kershner@unisys.com>
Reviewed-by: Tim Sell <timothy.sell@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
David Kershner 2017-09-27 13:14:14 -04:00 committed by Greg Kroah-Hartman
parent 7915a3c450
commit 5d48942c1f
1 changed files with 2 additions and 3 deletions

View File

@ -855,9 +855,8 @@ static void publish_vbus_dev_info(struct visor_device *visordev)
* type name
*/
for (i = 0; visordrv->channel_types[i].name; i++) {
if (memcmp(&visordrv->channel_types[i].guid,
&visordev->channel_type_guid,
sizeof(visordrv->channel_types[i].guid)) == 0) {
if (guid_equal(&visordrv->channel_types[i].guid,
&visordev->channel_type_guid)) {
chan_type_name = visordrv->channel_types[i].name;
break;
}