aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorXenia Ragiadakou <burzalodowa@gmail.com>2013-08-30 21:40:49 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-30 21:50:43 -0400
commitb9a1048137f4ae43ee90f61a3f34f0efe863cfeb (patch)
tree109fcc30fd4476f55e0e355aade9d4cb83bd852e /drivers/usb
parente3376d6c87eea09bd65ece6073f6e5d47aa560a3 (diff)
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 <burzalodowa@gmail.com> Reported-by: kbuild test robot <fengguang.wu@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/core/hub.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
index 3b7ca181cd72..dde4c83516a1 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,
4962 if ((old_bos && !udev->bos) || (!old_bos && udev->bos)) 4962 if ((old_bos && !udev->bos) || (!old_bos && udev->bos))
4963 return 1; 4963 return 1;
4964 if (udev->bos) { 4964 if (udev->bos) {
4965 len = udev->bos->desc->wTotalLength; 4965 len = le16_to_cpu(udev->bos->desc->wTotalLength);
4966 if (len != old_bos->desc->wTotalLength) 4966 if (len != le16_to_cpu(old_bos->desc->wTotalLength))
4967 return 1; 4967 return 1;
4968 if (memcmp(udev->bos->desc, old_bos->desc, le16_to_cpu(len))) 4968 if (memcmp(udev->bos->desc, old_bos->desc, len))
4969 return 1; 4969 return 1;
4970 } 4970 }
4971 4971