staging: rtl8192u: Merge almost duplicate code
authorPascal Terjan <pterjan@google.com>
Tue, 19 May 2020 15:00:42 +0000 (16:00 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 May 2020 15:08:50 +0000 (17:08 +0200)
commit8da047603bbcfddda6eb6ebbee0dc52c34badc6e
tree6c5e76bd48193b64db4b64181ce699d34ee20113
parentcf5ffd22e409e2cb7a7adc1f69fbcb92c335e273
staging: rtl8192u: Merge almost duplicate code

This causes a change in behaviour:
- stats also get updated when reordering, this seems like it should be
  the case but those lines were commented out.
- sub_skb NULL check now happens early in both cases, previously it
  happened only after dereferencing it 12 times, so it may not actually
  be needed.

Signed-off-by: Pascal Terjan <pterjan@google.com>
Link: https://lore.kernel.org/r/20200519150042.199690-1-pterjan@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c