Commit 08d65cfe authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman Committed by Linus Torvalds

USB: fix another sparse warning in the USB core

Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 4d5f0742
......@@ -695,7 +695,7 @@ void usbfs_add_device(struct usb_device *dev)
for (i = 0; i < dev->descriptor.bNumConfigurations; ++i) {
struct usb_config_descriptor *config =
(struct usb_config_descriptor *)dev->rawdescriptors[i];
i_size += le16_to_cpu (config->wTotalLength);
i_size += le16_to_cpu ((__force __le16)config->wTotalLength);
}
if (dev->usbfs_dentry->d_inode)
dev->usbfs_dentry->d_inode->i_size = i_size;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment