Commit b6520468 authored by Quytelda Kahja's avatar Quytelda Kahja Committed by Greg Kroah-Hartman

Staging: ks7010: hostif: Convert the ps_confirm_wait_inc() macro to a real function.

Convert the unsafe macro into an inline function.
Signed-off-by: default avatarQuytelda Kahja <quytelda@tamalin.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e4281f38
......@@ -1308,11 +1308,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); \
} while (0)
static inline void ps_confirm_wait_inc(struct ks_wlan_private *priv)
{
if (atomic_read(&priv->psstatus.status) > PS_ACTIVE_SET)
atomic_inc(&priv->psstatus.confirm_wait);
}
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