Commit e8de0ac8 authored by Ajay Singh's avatar Ajay Singh Committed by Greg Kroah-Hartman

staging: wilc1000: change return type to 'void' for wilc_frame_register()

Cleanup patch to use 'void' return type for wilc_frame_register(), as
its return value is not used.
Signed-off-by: default avatarAjay Singh <ajay.kathat@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8bdfc47f
...@@ -3641,14 +3641,14 @@ int wilc_listen_state_expired(struct wilc_vif *vif, u32 session_id) ...@@ -3641,14 +3641,14 @@ int wilc_listen_state_expired(struct wilc_vif *vif, u32 session_id)
return result; return result;
} }
int wilc_frame_register(struct wilc_vif *vif, u16 frame_type, bool reg) void wilc_frame_register(struct wilc_vif *vif, u16 frame_type, bool reg)
{ {
int result; int result;
struct host_if_msg *msg; struct host_if_msg *msg;
msg = wilc_alloc_work(vif, handle_register_frame, false); msg = wilc_alloc_work(vif, handle_register_frame, false);
if (IS_ERR(msg)) if (IS_ERR(msg))
return PTR_ERR(msg); return;
switch (frame_type) { switch (frame_type) {
case ACTION: case ACTION:
...@@ -3670,8 +3670,6 @@ int wilc_frame_register(struct wilc_vif *vif, u16 frame_type, bool reg) ...@@ -3670,8 +3670,6 @@ int wilc_frame_register(struct wilc_vif *vif, u16 frame_type, bool reg)
netdev_err(vif->ndev, "%s: enqueue work failed\n", __func__); netdev_err(vif->ndev, "%s: enqueue work failed\n", __func__);
kfree(msg); kfree(msg);
} }
return result;
} }
int wilc_add_beacon(struct wilc_vif *vif, u32 interval, u32 dtim_period, int wilc_add_beacon(struct wilc_vif *vif, u32 interval, u32 dtim_period,
......
...@@ -348,7 +348,7 @@ int wilc_remain_on_channel(struct wilc_vif *vif, u32 session_id, ...@@ -348,7 +348,7 @@ int wilc_remain_on_channel(struct wilc_vif *vif, u32 session_id,
wilc_remain_on_chan_ready ready, wilc_remain_on_chan_ready ready,
void *user_arg); void *user_arg);
int wilc_listen_state_expired(struct wilc_vif *vif, u32 session_id); int wilc_listen_state_expired(struct wilc_vif *vif, u32 session_id);
int wilc_frame_register(struct wilc_vif *vif, u16 frame_type, bool reg); void wilc_frame_register(struct wilc_vif *vif, u16 frame_type, bool reg);
int wilc_set_wfi_drv_handler(struct wilc_vif *vif, int index, u8 mode, int wilc_set_wfi_drv_handler(struct wilc_vif *vif, int index, u8 mode,
u8 ifc_id); u8 ifc_id);
int wilc_set_operation_mode(struct wilc_vif *vif, u32 mode); int wilc_set_operation_mode(struct wilc_vif *vif, u32 mode);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment