diff options
author | Himangi Saraogi <himangi774@gmail.com> | 2014-03-12 16:51:13 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-03-18 18:58:45 (GMT) |
commit | accd4d7d3752ea9c59e5134d20743c578b763765 (patch) | |
tree | 150de6e99d019ab153ca9632bd9dc12655d422d3 /drivers | |
parent | 45b1fe53b78fb117338c3c34760543a1668fd7c5 (diff) | |
download | linux-accd4d7d3752ea9c59e5134d20743c578b763765.tar.xz |
staging:ozwpan:Fix sparse warning of cast to restricted __le16
This patch fixes the following sparse warnings:
drivers/staging/ozwpan/ozusbsvc1.c:391:36: warning: cast to restricted __le16
drivers/staging/ozwpan/ozusbsvc1.c:393:33: warning: cast to restricted __le16
Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/ozwpan/ozprotocol.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/ozwpan/ozprotocol.h b/drivers/staging/ozwpan/ozprotocol.h index 9a3a6b8..9bbb182 100644 --- a/drivers/staging/ozwpan/ozprotocol.h +++ b/drivers/staging/ozwpan/ozprotocol.h @@ -219,8 +219,8 @@ struct oz_get_desc_rsp { u8 elt_seq_num; u8 type; u8 req_id; - u16 offset; - u16 total_size; + __le16 offset; + __le16 total_size; u8 rcode; u8 data[1]; } PACKED; |