diff options
-rw-r--r-- | net/mac80211/mesh_pathtbl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/mac80211/mesh_pathtbl.c b/net/mac80211/mesh_pathtbl.c index 385f9fc526db..bcf7fee53b2c 100644 --- a/net/mac80211/mesh_pathtbl.c +++ b/net/mac80211/mesh_pathtbl.c | |||
@@ -735,8 +735,7 @@ void mesh_path_flush_pending(struct mesh_path *mpath) | |||
735 | { | 735 | { |
736 | struct sk_buff *skb; | 736 | struct sk_buff *skb; |
737 | 737 | ||
738 | while ((skb = skb_dequeue(&mpath->frame_queue)) && | 738 | while ((skb = skb_dequeue(&mpath->frame_queue)) != NULL) |
739 | (mpath->flags & MESH_PATH_ACTIVE)) | ||
740 | mesh_path_discard_frame(skb, mpath->sdata); | 739 | mesh_path_discard_frame(skb, mpath->sdata); |
741 | } | 740 | } |
742 | 741 | ||