Commit e7abd806 authored by Larry Finger's avatar Larry Finger Committed by Greg Kroah-Hartman

staging: r8188eu: Remove unused atomic_xxx wrappers

Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fac4ed8c
...@@ -358,15 +358,8 @@ static inline u32 bitshift(u32 bitmask) ...@@ -358,15 +358,8 @@ static inline u32 bitshift(u32 bitmask)
#define PATH_LENGTH_MAX PATH_MAX #define PATH_LENGTH_MAX PATH_MAX
/* Atomic integer operations */ /* Atomic integer operations */
int ATOMIC_READ(atomic_t *v);
void ATOMIC_ADD(atomic_t *v, int i);
void ATOMIC_SUB(atomic_t *v, int i);
void ATOMIC_INC(atomic_t *v); void ATOMIC_INC(atomic_t *v);
void ATOMIC_DEC(atomic_t *v);
int ATOMIC_ADD_RETURN(atomic_t *v, int i);
int ATOMIC_SUB_RETURN(atomic_t *v, int i);
int ATOMIC_INC_RETURN(atomic_t *v); int ATOMIC_INC_RETURN(atomic_t *v);
int ATOMIC_DEC_RETURN(atomic_t *v);
struct rtw_netdev_priv_indicator { struct rtw_netdev_priv_indicator {
void *priv; void *priv;
......
...@@ -247,51 +247,16 @@ void rtw_sleep_schedulable(int ms) ...@@ -247,51 +247,16 @@ void rtw_sleep_schedulable(int ms)
#define RTW_SUSPEND_LOCK_NAME "rtw_wifi" #define RTW_SUSPEND_LOCK_NAME "rtw_wifi"
inline int ATOMIC_READ(atomic_t *v)
{
return atomic_read(v);
}
inline void ATOMIC_ADD(atomic_t *v, int i)
{
atomic_add(i, v);
}
inline void ATOMIC_SUB(atomic_t *v, int i)
{
atomic_sub(i, v);
}
inline void ATOMIC_INC(atomic_t *v) inline void ATOMIC_INC(atomic_t *v)
{ {
atomic_inc(v); atomic_inc(v);
} }
inline void ATOMIC_DEC(atomic_t *v)
{
atomic_dec(v);
}
inline int ATOMIC_ADD_RETURN(atomic_t *v, int i)
{
return atomic_add_return(i, v);
}
inline int ATOMIC_SUB_RETURN(atomic_t *v, int i)
{
return atomic_sub_return(i, v);
}
inline int ATOMIC_INC_RETURN(atomic_t *v) inline int ATOMIC_INC_RETURN(atomic_t *v)
{ {
return atomic_inc_return(v); return atomic_inc_return(v);
} }
inline int ATOMIC_DEC_RETURN(atomic_t *v)
{
return atomic_dec_return(v);
}
struct net_device *rtw_alloc_etherdev_with_old_priv(int sizeof_priv, struct net_device *rtw_alloc_etherdev_with_old_priv(int sizeof_priv,
void *old_priv) void *old_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