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

staging: r8188eu: Replace wrapper around atomic_set()

Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6fe58d68
...@@ -84,7 +84,7 @@ int _rtw_init_evt_priv(struct evt_priv *pevtpriv) ...@@ -84,7 +84,7 @@ int _rtw_init_evt_priv(struct evt_priv *pevtpriv)
_func_enter_; _func_enter_;
/* allocate DMA-able/Non-Page memory for cmd_buf and rsp_buf */ /* allocate DMA-able/Non-Page memory for cmd_buf and rsp_buf */
ATOMIC_SET(&pevtpriv->event_seq, 0); atomic_set(&pevtpriv->event_seq, 0);
pevtpriv->evt_done_cnt = 0; pevtpriv->evt_done_cnt = 0;
_init_workitem(&pevtpriv->c2h_wk, c2h_wk_callback, NULL); _init_workitem(&pevtpriv->c2h_wk, c2h_wk_callback, NULL);
......
...@@ -221,7 +221,7 @@ static void init_mlme_ext_priv_value(struct adapter *padapter) ...@@ -221,7 +221,7 @@ static void init_mlme_ext_priv_value(struct adapter *padapter)
_12M_RATE_, _24M_RATE_, 0xff, _12M_RATE_, _24M_RATE_, 0xff,
}; };
ATOMIC_SET(&pmlmeext->event_seq, 0); atomic_set(&pmlmeext->event_seq, 0);
pmlmeext->mgnt_seq = 0;/* reset to zero when disconnect at client mode */ pmlmeext->mgnt_seq = 0;/* reset to zero when disconnect at client mode */
pmlmeext->cur_channel = padapter->registrypriv.channel; pmlmeext->cur_channel = padapter->registrypriv.channel;
......
...@@ -358,7 +358,6 @@ static inline u32 bitshift(u32 bitmask) ...@@ -358,7 +358,6 @@ static inline u32 bitshift(u32 bitmask)
#define PATH_LENGTH_MAX PATH_MAX #define PATH_LENGTH_MAX PATH_MAX
/* Atomic integer operations */ /* Atomic integer operations */
void ATOMIC_SET(atomic_t *v, int i);
int ATOMIC_READ(atomic_t *v); int ATOMIC_READ(atomic_t *v);
void ATOMIC_ADD(atomic_t *v, int i); void ATOMIC_ADD(atomic_t *v, int i);
void ATOMIC_SUB(atomic_t *v, int i); void ATOMIC_SUB(atomic_t *v, int i);
......
...@@ -91,7 +91,7 @@ static inline int rtw_inc_and_chk_continual_urb_error(struct dvobj_priv *dvobj) ...@@ -91,7 +91,7 @@ static inline int rtw_inc_and_chk_continual_urb_error(struct dvobj_priv *dvobj)
*/ */
static inline void rtw_reset_continual_urb_error(struct dvobj_priv *dvobj) static inline void rtw_reset_continual_urb_error(struct dvobj_priv *dvobj)
{ {
ATOMIC_SET(&dvobj->continual_urb_error, 0); atomic_set(&dvobj->continual_urb_error, 0);
} }
#define USB_HIGH_SPEED_BULK_SIZE 512 #define USB_HIGH_SPEED_BULK_SIZE 512
......
...@@ -247,11 +247,6 @@ void rtw_sleep_schedulable(int ms) ...@@ -247,11 +247,6 @@ void rtw_sleep_schedulable(int ms)
#define RTW_SUSPEND_LOCK_NAME "rtw_wifi" #define RTW_SUSPEND_LOCK_NAME "rtw_wifi"
inline void ATOMIC_SET(atomic_t *v, int i)
{
atomic_set(v, i);
}
inline int ATOMIC_READ(atomic_t *v) inline int ATOMIC_READ(atomic_t *v)
{ {
return atomic_read(v); return atomic_read(v);
......
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