]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: wilc1000: change return type to 'void' for wilc_frame_register()
authorAjay Singh <ajay.kathat@microchip.com>
Tue, 25 Sep 2018 06:23:16 +0000 (11:53 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Sep 2018 18:53:56 +0000 (20:53 +0200)
Cleanup patch to use 'void' return type for wilc_frame_register(), as
its return value is not used.

Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/host_interface.c
drivers/staging/wilc1000/host_interface.h

index 5388be90626186263a7ac24587c4ed300a67fcdf..7729f838cedf2c090324e81b6c996e7a12de9fad 100644 (file)
@@ -3641,14 +3641,14 @@ int wilc_listen_state_expired(struct wilc_vif *vif, u32 session_id)
        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;
        struct host_if_msg *msg;
 
        msg = wilc_alloc_work(vif, handle_register_frame, false);
        if (IS_ERR(msg))
-               return PTR_ERR(msg);
+               return;
 
        switch (frame_type) {
        case ACTION:
@@ -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__);
                kfree(msg);
        }
-
-       return result;
 }
 
 int wilc_add_beacon(struct wilc_vif *vif, u32 interval, u32 dtim_period,
index a48818f6c4fc4f53198b4b9a1df874fd21f45227..15ffaeb939ec20be755fe2c0c5afdec6b77df2d3 100644 (file)
@@ -348,7 +348,7 @@ int wilc_remain_on_channel(struct wilc_vif *vif, u32 session_id,
                           wilc_remain_on_chan_ready ready,
                           void *user_arg);
 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,
                             u8 ifc_id);
 int wilc_set_operation_mode(struct wilc_vif *vif, u32 mode);