From: Xenia Ragiadakou Date: Sat, 31 Aug 2013 01:40:49 +0000 (+0300) Subject: usbcore: fix incorrect type in assignment in descriptors_changed() X-Git-Tag: upstream/snapshot3+hdmi~4476^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b9a1048137f4ae43ee90f61a3f34f0efe863cfeb;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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: Xenia Ragiadakou Reported-by: kbuild test robot Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index 3b7ca18..dde4c83 100644 --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c @@ -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; }