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: Quytelda Kahja <quytelda@tamalin.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e4281f385b
commit
b6520468c4
@ -1308,11 +1308,11 @@ err_kfree_skb:
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define ps_confirm_wait_inc(priv) \
|
static inline void ps_confirm_wait_inc(struct ks_wlan_private *priv)
|
||||||
do { \
|
{
|
||||||
if (atomic_read(&priv->psstatus.status) > PS_ACTIVE_SET) \
|
if (atomic_read(&priv->psstatus.status) > PS_ACTIVE_SET)
|
||||||
atomic_inc(&priv->psstatus.confirm_wait); \
|
atomic_inc(&priv->psstatus.confirm_wait);
|
||||||
} while (0)
|
}
|
||||||
|
|
||||||
static
|
static
|
||||||
void hostif_mib_get_request(struct ks_wlan_private *priv,
|
void hostif_mib_get_request(struct ks_wlan_private *priv,
|
||||||
|
Loading…
Reference in New Issue
Block a user