diff options
Diffstat (limited to 'net/wimax/stack.c')
-rw-r--r-- | net/wimax/stack.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/wimax/stack.c b/net/wimax/stack.c index 1ed65dbdab03..ee99e7dfcdba 100644 --- a/net/wimax/stack.c +++ b/net/wimax/stack.c | |||
@@ -315,12 +315,11 @@ void __wimax_state_change(struct wimax_dev *wimax_dev, enum wimax_st new_state) | |||
315 | BUG(); | 315 | BUG(); |
316 | } | 316 | } |
317 | __wimax_state_set(wimax_dev, new_state); | 317 | __wimax_state_set(wimax_dev, new_state); |
318 | if (stch_skb) | 318 | if (!IS_ERR(stch_skb)) |
319 | wimax_gnl_re_state_change_send(wimax_dev, stch_skb, header); | 319 | wimax_gnl_re_state_change_send(wimax_dev, stch_skb, header); |
320 | out: | 320 | out: |
321 | d_fnend(3, dev, "(wimax_dev %p new_state %u [old %u]) = void\n", | 321 | d_fnend(3, dev, "(wimax_dev %p new_state %u [old %u]) = void\n", |
322 | wimax_dev, new_state, old_state); | 322 | wimax_dev, new_state, old_state); |
323 | return; | ||
324 | } | 323 | } |
325 | 324 | ||
326 | 325 | ||
@@ -362,7 +361,6 @@ void wimax_state_change(struct wimax_dev *wimax_dev, enum wimax_st new_state) | |||
362 | if (wimax_dev->state > __WIMAX_ST_NULL) | 361 | if (wimax_dev->state > __WIMAX_ST_NULL) |
363 | __wimax_state_change(wimax_dev, new_state); | 362 | __wimax_state_change(wimax_dev, new_state); |
364 | mutex_unlock(&wimax_dev->mutex); | 363 | mutex_unlock(&wimax_dev->mutex); |
365 | return; | ||
366 | } | 364 | } |
367 | EXPORT_SYMBOL_GPL(wimax_state_change); | 365 | EXPORT_SYMBOL_GPL(wimax_state_change); |
368 | 366 | ||