diff options
author | Amitoj Kaur Chawla <amitoj1606@gmail.com> | 2015-10-23 23:44:48 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-24 19:44:30 -0700 |
commit | 7526a468841f463e24c3756a139623b24d1408e6 (patch) | |
tree | d35475d6604dfd5f591f57803bf90ec665cc74b4 /drivers/staging/vt6656 | |
parent | 11d7e632e3102fec4d81e8f746d4afce65effe2c (diff) |
staging: vt6656: Remove unnecessary braces and tab spacing
This patch removes unnecessary braces around if-else single statement
blocks and unnecessary tab space aligning
Tool used is uncrustify.
Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vt6656')
-rw-r--r-- | drivers/staging/vt6656/power.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/staging/vt6656/power.c b/drivers/staging/vt6656/power.c index d5912d23aa0d..13afce27951c 100644 --- a/drivers/staging/vt6656/power.c +++ b/drivers/staging/vt6656/power.c @@ -59,10 +59,9 @@ void vnt_enable_power_saving(struct vnt_private *priv, u16 listen_interval) /* set period of power up before TBTT */ vnt_mac_write_word(priv, MAC_REG_PWBT, C_PWBT); - if (priv->op_mode != NL80211_IFTYPE_ADHOC) { + if (priv->op_mode != NL80211_IFTYPE_ADHOC) /* set AID */ vnt_mac_write_word(priv, MAC_REG_AIDATIM, aid); - } /* Warren:06-18-2004,the sequence must follow * PSEN->AUTOSLEEP->GO2DOZE @@ -85,11 +84,10 @@ void vnt_enable_power_saving(struct vnt_private *priv, u16 listen_interval) /* first time set listen next beacon */ vnt_mac_reg_bits_on(priv, MAC_REG_PSCTL, PSCTL_LNBCN); - } else { + } else /* always listen beacon */ vnt_mac_reg_bits_on(priv, MAC_REG_PSCTL, PSCTL_ALBCN); - } dev_dbg(&priv->usb->dev, "PS:Power Saving Mode Enable...\n"); } @@ -109,7 +107,7 @@ void vnt_disable_power_saving(struct vnt_private *priv) /* disable power saving hw function */ vnt_control_out(priv, MESSAGE_TYPE_DISABLE_PS, 0, - 0, 0, NULL); + 0, 0, NULL); /* clear AutoSleep */ vnt_mac_reg_bits_off(priv, MAC_REG_PSCFG, PSCFG_AUTOSLEEP); |