rtl88x2CS: Resolve constant-conversion errors
authorBruno Martins <bgcngm@gmail.com>
Sun, 22 Oct 2023 16:44:56 +0000 (17:44 +0100)
committerBruno Martins <bgcngm@gmail.com>
Sun, 22 Oct 2023 16:45:31 +0000 (17:45 +0100)
Change-Id: I7909337b42dfc39ad4fab5f74341d5614afb150a

rtl88x2CS/os_dep/linux/rtw_cfgvendor.c

index d906163df6ee3440185d5a271f74f4168a1fba59..6991f0316bee8685fa07cfc31e0fab710b3e500a 100644 (file)
@@ -171,7 +171,7 @@ struct sk_buff *rtw_cfg80211_vendor_event_alloc(
 int rtw_cfgvendor_send_async_event(struct wiphy *wiphy,
           struct net_device *dev, int event_id, const void  *data, int len)
 {
-       u16 kflags;
+       gfp_t kflags;
        struct sk_buff *skb;
 
        kflags = in_atomic() ? GFP_ATOMIC : GFP_KERNEL;
@@ -394,7 +394,7 @@ exit:
 int rtw_cfgvendor_send_hotlist_event(struct wiphy *wiphy,
        struct net_device *dev, void  *data, int len, rtw_vendor_event_t event)
 {
-       u16 kflags;
+       gfp_t kflags;
        const void *ptr;
        struct sk_buff *skb;
        int malloc_len, total, iter_cnt_to_send, cnt;