staging: wilc1000: remove unnecessary local variables
Remove unnecessary local variable "ret" and its assignments from functions wilc_set_tx_power and wilc_get_tx_power. Suggested by Coccinelle. Signed-off-by: Himadri Pandya <himadri18.07@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
1d78178410
commit
72a2af2201
|
@ -2121,7 +2121,6 @@ int wilc_setup_multicast_filter(struct wilc_vif *vif, u32 enabled, u32 count,
|
|||
|
||||
int wilc_set_tx_power(struct wilc_vif *vif, u8 tx_power)
|
||||
{
|
||||
int ret;
|
||||
struct wid wid;
|
||||
|
||||
wid.id = WID_TX_POWER;
|
||||
|
@ -2129,15 +2128,12 @@ int wilc_set_tx_power(struct wilc_vif *vif, u8 tx_power)
|
|||
wid.val = &tx_power;
|
||||
wid.size = sizeof(char);
|
||||
|
||||
ret = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1,
|
||||
return wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1,
|
||||
wilc_get_vif_idx(vif));
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
int wilc_get_tx_power(struct wilc_vif *vif, u8 *tx_power)
|
||||
{
|
||||
int ret;
|
||||
struct wid wid;
|
||||
|
||||
wid.id = WID_TX_POWER;
|
||||
|
@ -2145,8 +2141,6 @@ int wilc_get_tx_power(struct wilc_vif *vif, u8 *tx_power)
|
|||
wid.val = tx_power;
|
||||
wid.size = sizeof(char);
|
||||
|
||||
ret = wilc_send_config_pkt(vif, WILC_GET_CFG, &wid, 1,
|
||||
wilc_get_vif_idx(vif));
|
||||
|
||||
return ret;
|
||||
return wilc_send_config_pkt(vif, WILC_GET_CFG, &wid, 1,
|
||||
wilc_get_vif_idx(vif));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue