staging: wilc1000: fix cast to restricted __le32
PATCH v3 1/1 staging: wilc1000: fix cast to restricted __le32
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] <noident>
Fixes 147ccfd451024 ("staging: wilc1000: handle mgmt_frame_register ops from cfg82011 context")
Signed-off-by Július Milan <[email protected]>
--- drivers/staging/wilc1000/host_interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
v3:
- nothing really changed since v1, v2, I just messed emails and then patch format, sorry for that, it's my first patch :)
drivers/staging/wilc1000/host_interface.c +1 -1
@@ -2357,7 +2357,7 @@ void wilc_frame_register(struct wilc_vif *vif, u16 frame_type, bool reg)default :break ; } - reg_frame.frame_type =cpu_to_le16 (frame_type); + reg_frame.frame_type =cpu_to_le32 (frame_type); result =wilc_send_config_pkt (vif,WILC_SET_CFG , &wid,1 ,wilc_get_vif_idx (vif));if (result)
Signature · 1 line
2.14.5