staging: ozwpan: Fix incorrect type in assignments
authorMelike Yurtoglu <aysemelikeyurtoglu@gmail.com>
Sun, 26 Oct 2014 21:55:22 +0000 (23:55 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Oct 2014 08:19:02 +0000 (16:19 +0800)
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>
drivers/staging/ozwpan/ozhcd.c

index 8a52feb6e72e61d9795991b257b4d106a5b8e421..3d03e9255831c0d77cb9b57ba6d5abbe3d038d7f 100644 (file)
@@ -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;
 }
 
This page took 0.025429 seconds and 5 git commands to generate.