diff options
author | Melike Yurtoglu <aysemelikeyurtoglu@gmail.com> | 2014-10-26 23:55:22 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-10-28 16:19:02 +0800 |
commit | 43f61da20769923f951ded489b3b2de2e5dc0e3f (patch) | |
tree | fa04207a64c3cf1d525b04b60a4b906e037b5727 /drivers/staging/ozwpan | |
parent | 353fdf17060b15d1d857899cd3ed9d5db4818acf (diff) | |
download | blackbird-op-linux-43f61da20769923f951ded489b3b2de2e5dc0e3f.tar.gz blackbird-op-linux-43f61da20769923f951ded489b3b2de2e5dc0e3f.zip |
staging: ozwpan: Fix incorrect type in assignments
This patch fixes following sparse warnings:
drivers/staging/ozwpan/ozhcd.c:1917:35: warning: incorrect type in
assignment (different base types)
drivers/staging/ozwpan/ozhcd.c:1917:35: expected restricted __le16
[usertype] wHubCharacteristics
drivers/staging/ozwpan/ozhcd.c:1917:35: got unsigned short [unsigned]
[usertype] <noident>
Signed-off-by: Melike Yurtoglu <aysemelikeyurtoglu@gmail.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ozwpan')
-rw-r--r-- | drivers/staging/ozwpan/ozhcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/ozwpan/ozhcd.c b/drivers/staging/ozwpan/ozhcd.c index 8a52feb6e72e..3d03e9255831 100644 --- a/drivers/staging/ozwpan/ozhcd.c +++ b/drivers/staging/ozwpan/ozhcd.c @@ -1914,7 +1914,7 @@ static void oz_get_hub_descriptor(struct usb_hcd *hcd, memset(desc, 0, sizeof(*desc)); desc->bDescriptorType = 0x29; desc->bDescLength = 9; - desc->wHubCharacteristics = (__force __u16)cpu_to_le16(0x0001); + desc->wHubCharacteristics = cpu_to_le16(0x0001); desc->bNbrPorts = OZ_NB_PORTS; } |