staging:ozwpan:Fix sparse warning of cast to restricted __le16
authorHimangi Saraogi <himangi774@gmail.com>
Wed, 12 Mar 2014 16:51:13 +0000 (22:21 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Mar 2014 18:58:45 +0000 (11:58 -0700)
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>
drivers/staging/ozwpan/ozprotocol.h

index 9a3a6b8..9bbb182 100644 (file)
@@ -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;