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

Commit b9a10481 authored by Xenia Ragiadakou's avatar Xenia Ragiadakou Committed by Greg Kroah-Hartman
Browse files

usbcore: fix incorrect type in assignment in descriptors_changed()



This patch fixes the incorrect assignment of a variable with type 'le16'
to a variable with type 'unsigned int'.

Signed-off-by: default avatarXenia Ragiadakou <burzalodowa@gmail.com>
Reported-by: default avatarkbuild test robot <fengguang.wu@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e3376d6c
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -4962,10 +4962,10 @@ static int descriptors_changed(struct usb_device *udev,
	if ((old_bos && !udev->bos) || (!old_bos && udev->bos))
		return 1;
	if (udev->bos) {
		len = udev->bos->desc->wTotalLength;
		if (len != old_bos->desc->wTotalLength)
		len = le16_to_cpu(udev->bos->desc->wTotalLength);
		if (len != le16_to_cpu(old_bos->desc->wTotalLength))
			return 1;
		if (memcmp(udev->bos->desc, old_bos->desc, le16_to_cpu(len)))
		if (memcmp(udev->bos->desc, old_bos->desc, len))
			return 1;
	}