diff options
Diffstat (limited to 'net/ieee80211/softmac/ieee80211softmac_event.c')
-rw-r--r-- | net/ieee80211/softmac/ieee80211softmac_event.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/net/ieee80211/softmac/ieee80211softmac_event.c b/net/ieee80211/softmac/ieee80211softmac_event.c index b9015656cfb3..b3e33a4d4869 100644 --- a/net/ieee80211/softmac/ieee80211softmac_event.c +++ b/net/ieee80211/softmac/ieee80211softmac_event.c | |||
@@ -79,7 +79,7 @@ ieee80211softmac_notify_callback(struct work_struct *work) | |||
79 | container_of(work, struct ieee80211softmac_event, work.work); | 79 | container_of(work, struct ieee80211softmac_event, work.work); |
80 | struct ieee80211softmac_event event = *pevent; | 80 | struct ieee80211softmac_event event = *pevent; |
81 | kfree(pevent); | 81 | kfree(pevent); |
82 | 82 | ||
83 | event.fun(event.mac->dev, event.event_type, event.context); | 83 | event.fun(event.mac->dev, event.event_type, event.context); |
84 | } | 84 | } |
85 | 85 | ||
@@ -92,14 +92,14 @@ ieee80211softmac_notify_internal(struct ieee80211softmac_device *mac, | |||
92 | 92 | ||
93 | if (event < -1 || event > IEEE80211SOFTMAC_EVENT_LAST) | 93 | if (event < -1 || event > IEEE80211SOFTMAC_EVENT_LAST) |
94 | return -ENOSYS; | 94 | return -ENOSYS; |
95 | 95 | ||
96 | if (!fun) | 96 | if (!fun) |
97 | return -EINVAL; | 97 | return -EINVAL; |
98 | 98 | ||
99 | eventptr = kmalloc(sizeof(struct ieee80211softmac_event), gfp_mask); | 99 | eventptr = kmalloc(sizeof(struct ieee80211softmac_event), gfp_mask); |
100 | if (!eventptr) | 100 | if (!eventptr) |
101 | return -ENOMEM; | 101 | return -ENOMEM; |
102 | 102 | ||
103 | eventptr->event_type = event; | 103 | eventptr->event_type = event; |
104 | INIT_DELAYED_WORK(&eventptr->work, ieee80211softmac_notify_callback); | 104 | INIT_DELAYED_WORK(&eventptr->work, ieee80211softmac_notify_callback); |
105 | eventptr->fun = fun; | 105 | eventptr->fun = fun; |
@@ -122,7 +122,7 @@ ieee80211softmac_notify_gfp(struct net_device *dev, | |||
122 | 122 | ||
123 | if (event < 0 || event > IEEE80211SOFTMAC_EVENT_LAST) | 123 | if (event < 0 || event > IEEE80211SOFTMAC_EVENT_LAST) |
124 | return -ENOSYS; | 124 | return -ENOSYS; |
125 | 125 | ||
126 | return ieee80211softmac_notify_internal(mac, event, NULL, fun, context, gfp_mask); | 126 | return ieee80211softmac_notify_internal(mac, event, NULL, fun, context, gfp_mask); |
127 | } | 127 | } |
128 | EXPORT_SYMBOL_GPL(ieee80211softmac_notify_gfp); | 128 | EXPORT_SYMBOL_GPL(ieee80211softmac_notify_gfp); |
@@ -133,7 +133,7 @@ ieee80211softmac_call_events_locked(struct ieee80211softmac_device *mac, int eve | |||
133 | { | 133 | { |
134 | struct ieee80211softmac_event *eventptr, *tmp; | 134 | struct ieee80211softmac_event *eventptr, *tmp; |
135 | struct ieee80211softmac_network *network; | 135 | struct ieee80211softmac_network *network; |
136 | 136 | ||
137 | if (event >= 0) { | 137 | if (event >= 0) { |
138 | union iwreq_data wrqu; | 138 | union iwreq_data wrqu; |
139 | int we_event; | 139 | int we_event; |