mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-25 10:59:05 +00:00
staging: ks7010: Remove braces around single statement blocks
Fixes checkpatch warning: braces{} are not necessary for single statment blocks Signed-off-by: Sabitha George <sabitha.george@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ab1effc095
commit
bd46a80110
@ -97,11 +97,10 @@ int ks_wlan_do_power_save(struct ks_wlan_private *priv)
|
||||
{
|
||||
DPRINTK(4, "psstatus.status=%d\n", atomic_read(&priv->psstatus.status));
|
||||
|
||||
if ((priv->connect_status & CONNECT_STATUS_MASK) == CONNECT_STATUS) {
|
||||
if ((priv->connect_status & CONNECT_STATUS_MASK) == CONNECT_STATUS)
|
||||
hostif_sme_enqueue(priv, SME_POW_MNGMT_REQUEST);
|
||||
} else {
|
||||
else
|
||||
priv->dev_state = DEVICE_STATE_READY;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -687,15 +686,13 @@ void hostif_mib_set_confirm(struct ks_wlan_private *priv)
|
||||
break;
|
||||
case DOT11_GMK1_TSC:
|
||||
DPRINTK(2, "DOT11_GMK1_TSC:mib_status=%d\n", (int)mib_status);
|
||||
if (atomic_read(&priv->psstatus.snooze_guard)) {
|
||||
if (atomic_read(&priv->psstatus.snooze_guard))
|
||||
atomic_set(&priv->psstatus.snooze_guard, 0);
|
||||
}
|
||||
break;
|
||||
case DOT11_GMK2_TSC:
|
||||
DPRINTK(2, "DOT11_GMK2_TSC:mib_status=%d\n", (int)mib_status);
|
||||
if (atomic_read(&priv->psstatus.snooze_guard)) {
|
||||
if (atomic_read(&priv->psstatus.snooze_guard))
|
||||
atomic_set(&priv->psstatus.snooze_guard, 0);
|
||||
}
|
||||
break;
|
||||
case LOCAL_PMK:
|
||||
DPRINTK(2, "LOCAL_PMK:mib_status=%d\n", (int)mib_status);
|
||||
@ -2436,9 +2433,8 @@ void hostif_sme_execute(struct ks_wlan_private *priv, int event)
|
||||
DPRINTK(3, "event=%d\n", event);
|
||||
switch (event) {
|
||||
case SME_START:
|
||||
if (priv->dev_state == DEVICE_STATE_BOOT) {
|
||||
if (priv->dev_state == DEVICE_STATE_BOOT)
|
||||
hostif_mib_get_request(priv, DOT11_MAC_ADDRESS);
|
||||
}
|
||||
break;
|
||||
case SME_MULTICAST_REQUEST:
|
||||
hostif_sme_multicast_set(priv);
|
||||
@ -2483,14 +2479,12 @@ void hostif_sme_execute(struct ks_wlan_private *priv, int event)
|
||||
}
|
||||
break;
|
||||
case SME_GET_MAC_ADDRESS:
|
||||
if (priv->dev_state == DEVICE_STATE_BOOT) {
|
||||
if (priv->dev_state == DEVICE_STATE_BOOT)
|
||||
hostif_mib_get_request(priv, DOT11_PRODUCT_VERSION);
|
||||
}
|
||||
break;
|
||||
case SME_GET_PRODUCT_VERSION:
|
||||
if (priv->dev_state == DEVICE_STATE_BOOT) {
|
||||
if (priv->dev_state == DEVICE_STATE_BOOT)
|
||||
priv->dev_state = DEVICE_STATE_PREINIT;
|
||||
}
|
||||
break;
|
||||
case SME_STOP_REQUEST:
|
||||
hostif_stop_request(priv);
|
||||
@ -2569,9 +2563,8 @@ void hostif_sme_execute(struct ks_wlan_private *priv, int event)
|
||||
/* for power save */
|
||||
atomic_set(&priv->psstatus.snooze_guard, 0);
|
||||
atomic_set(&priv->psstatus.confirm_wait, 0);
|
||||
if (priv->dev_state == DEVICE_STATE_PREINIT) {
|
||||
if (priv->dev_state == DEVICE_STATE_PREINIT)
|
||||
priv->dev_state = DEVICE_STATE_INIT;
|
||||
}
|
||||
/* wake_up_interruptible_all(&priv->confirm_wait); */
|
||||
complete(&priv->confirm_wait);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user