summaryrefslogtreecommitdiff
path: root/drivers/staging/ozwpan/ozprotocol.h
diff options
context:
space:
mode:
authorHimangi Saraogi <himangi774@gmail.com>2014-03-12 16:50:32 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-03-18 18:58:26 (GMT)
commit45b1fe53b78fb117338c3c34760543a1668fd7c5 (patch)
tree05564b6bc2a6ae9d55a95683a065dd5a5a8ec8d7 /drivers/staging/ozwpan/ozprotocol.h
parent8470e79188fbd3839284bf4f2f48aa1a018df64e (diff)
downloadlinux-45b1fe53b78fb117338c3c34760543a1668fd7c5.tar.xz
staging:ozwpan:Fix sparse warning of incorrect argument type
This patch fixes the following sparse warning: drivers/staging/ozwpan/ozusbsvc1.c:208:50: warning: incorrect type in argument 6 (different base types) drivers/staging/ozwpan/ozusbsvc1.c:208:50: expected unsigned short [unsigned] [usertype] windex drivers/staging/ozwpan/ozusbsvc1.c:208:50: got restricted __le16 [usertype] wIndex Signed-off-by: Himangi Saraogi <himangi774@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ozwpan/ozprotocol.h')
-rw-r--r--drivers/staging/ozwpan/ozprotocol.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/ozwpan/ozprotocol.h b/drivers/staging/ozwpan/ozprotocol.h
index 17b09b9..9a3a6b8 100644
--- a/drivers/staging/ozwpan/ozprotocol.h
+++ b/drivers/staging/ozwpan/ozprotocol.h
@@ -192,7 +192,7 @@ struct oz_get_desc_req {
u16 size;
u8 req_type;
u8 desc_type;
- u16 w_index;
+ __le16 w_index;
u8 index;
} PACKED;