From: Július Milan Date: Mon, 7 Jan 2019 14:43:05 +0000 (+0100) Subject: staging: wilc1000: fix registration frame size X-Git-Tag: v5.4-rc1~1730^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b62ce02e157afa9b57d7f0625e8c585935f422a5;p=platform%2Fkernel%2Flinux-rpi.git staging: wilc1000: fix registration frame size Fixes the following sparse warnings: drivers/staging/wilc1000/host_interface.c:2360:30: warning: incorrect type in assignment (different base types) expected restricted __le32 [addressable] [assigned] [usertype] frame_type got restricted __le16 [usertype] Fixes: 147ccfd451024 ("staging: wilc1000: handle mgmt_frame_register ops from cfg82011 context") Signed-off-by: Július Milan Reviewed-by: Ajay Singh Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c index 70c854d..7acb790 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -36,7 +36,7 @@ struct wilc_op_mode { struct wilc_reg_frame { bool reg; u8 reg_id; - __le32 frame_type; + __le16 frame_type; } __packed; struct wilc_drv_handler {