Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Himangi Saraogi and committed by
Greg Kroah-Hartman
accd4d7d 45b1fe53

+2 -2
+2 -2
drivers/staging/ozwpan/ozprotocol.h
··· 219 219 u8 elt_seq_num; 220 220 u8 type; 221 221 u8 req_id; 222 - u16 offset; 223 - u16 total_size; 222 + __le16 offset; 223 + __le16 total_size; 224 224 u8 rcode; 225 225 u8 data[1]; 226 226 } PACKED;