Commit 72f78682 authored by Tobin C. Harding's avatar Tobin C. Harding Committed by Greg Kroah-Hartman

staging: ks7010: clean up macro ps_confirm_wait_inc

Macro includes commented out code. Removing dead code line enables
braces to be removed. Macro is easier to read if the code is clean.

Clean up macro ps_confirm_wait_inc.
Signed-off-by: default avatarTobin C. Harding <me@tobin.cc>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e04f2ec6
......@@ -1283,11 +1283,11 @@ int hostif_data_request(struct ks_wlan_private *priv, struct sk_buff *skb)
return ret;
}
#define ps_confirm_wait_inc(priv) do { \
if (atomic_read(&priv->psstatus.status) > PS_ACTIVE_SET) { \
atomic_inc(&priv->psstatus.confirm_wait); \
/* atomic_set(&priv->psstatus.status, PS_CONF_WAIT);*/ \
} } while (0)
#define ps_confirm_wait_inc(priv) \
do { \
if (atomic_read(&priv->psstatus.status) > PS_ACTIVE_SET) \
atomic_inc(&priv->psstatus.confirm_wait); \
} while (0)
static
void hostif_mib_get_request(struct ks_wlan_private *priv,
......
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