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:
parent
7915a3c450
commit
5d48942c1f
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue