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

staging: wilc1000: remove inner block '{}' in handle_remain_on_chan()

Cleanup patch to remove unnecessary inner block {\* *\} in
handle_remain_on_chan().
Signed-off-by: default avatarAjay Singh <ajay.kathat@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4f939ed4
...@@ -2244,19 +2244,16 @@ static int handle_remain_on_chan(struct wilc_vif *vif, ...@@ -2244,19 +2244,16 @@ static int handle_remain_on_chan(struct wilc_vif *vif,
netdev_err(vif->ndev, "Failed to set remain on channel\n"); netdev_err(vif->ndev, "Failed to set remain on channel\n");
error: error:
{ p2p_listen_state = 1;
p2p_listen_state = 1; hif_drv->remain_on_ch_timer_vif = vif;
hif_drv->remain_on_ch_timer_vif = vif; mod_timer(&hif_drv->remain_on_ch_timer,
mod_timer(&hif_drv->remain_on_ch_timer, jiffies + msecs_to_jiffies(hif_remain_ch->duration));
jiffies +
msecs_to_jiffies(hif_remain_ch->duration));
if (hif_drv->remain_on_ch.ready) if (hif_drv->remain_on_ch.ready)
hif_drv->remain_on_ch.ready(hif_drv->remain_on_ch.arg); hif_drv->remain_on_ch.ready(hif_drv->remain_on_ch.arg);
if (hif_drv->remain_on_ch_pending) if (hif_drv->remain_on_ch_pending)
hif_drv->remain_on_ch_pending = 0; hif_drv->remain_on_ch_pending = 0;
}
return result; return result;
} }
......
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