Commit d0d3777c authored by Sergio Paracuellos's avatar Sergio Paracuellos Committed by Greg Kroah-Hartman

staging: ks7010: remove KS_WLAN_MEM_FLAG definition

This commit removes KS_WLAN_MEM_FLAG definition which is
hiding GFP_ATOMIC along the code. It is better to use directly
GFP_ATOMIC in kmalloc's because this it is easier to read.
Signed-off-by: default avatarSergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5401fcbe
...@@ -38,8 +38,6 @@ static inline unsigned int cnt_smeqbody(struct ks_wlan_private *priv) ...@@ -38,8 +38,6 @@ static inline unsigned int cnt_smeqbody(struct ks_wlan_private *priv)
return (sme_cnt + SME_EVENT_BUFF_SIZE) % SME_EVENT_BUFF_SIZE; return (sme_cnt + SME_EVENT_BUFF_SIZE) % SME_EVENT_BUFF_SIZE;
} }
#define KS_WLAN_MEM_FLAG (GFP_ATOMIC)
static inline u8 get_byte(struct ks_wlan_private *priv) static inline u8 get_byte(struct ks_wlan_private *priv)
{ {
u8 data; u8 data;
...@@ -1044,7 +1042,7 @@ static void *hostif_generic_request(size_t size, int event) ...@@ -1044,7 +1042,7 @@ static void *hostif_generic_request(size_t size, int event)
{ {
struct hostif_hdr *p; struct hostif_hdr *p;
p = kzalloc(hif_align_size(size), KS_WLAN_MEM_FLAG); p = kzalloc(hif_align_size(size), GFP_ATOMIC);
if (!p) if (!p)
return NULL; return NULL;
...@@ -1098,7 +1096,7 @@ int hostif_data_request(struct ks_wlan_private *priv, struct sk_buff *skb) ...@@ -1098,7 +1096,7 @@ int hostif_data_request(struct ks_wlan_private *priv, struct sk_buff *skb)
} }
size = sizeof(*pp) + 6 + skb_len + 8; size = sizeof(*pp) + 6 + skb_len + 8;
pp = kmalloc(hif_align_size(size), KS_WLAN_MEM_FLAG); pp = kmalloc(hif_align_size(size), GFP_ATOMIC);
if (!pp) { if (!pp) {
ret = -ENOMEM; ret = -ENOMEM;
goto err_kfree_skb; goto err_kfree_skb;
......
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