]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: rtl8192u: ieee80211: ieee80211_rx.c: Fix NULL comparisions.
authorSanjana Sanikommu <sanjana99reddy99@gmail.com>
Tue, 19 Mar 2019 17:05:26 +0000 (22:35 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Mar 2019 06:50:35 +0000 (07:50 +0100)
Replace NULL comparisons in the file.
Issue found by checkpatch.pl

Signed-off-by: Sanjana Sanikommu <sanjana99reddy99@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c

index 6009fe0e1d4fc89db6854699b294874f53748302..e3e40d183871ca5274b7cf1b60ee2bc8c56c8661 100644 (file)
@@ -151,7 +151,7 @@ ieee80211_frag_cache_get(struct ieee80211_device *ieee,
                 * should have already been received */
                entry = ieee80211_frag_cache_find(ieee, seq, frag, tid,hdr->addr2,
                                                  hdr->addr1);
-               if (entry != NULL) {
+               if (entry) {
                        entry->last_frag = frag;
                        skb = entry->skb;
                }
@@ -190,7 +190,7 @@ static int ieee80211_frag_cache_invalidate(struct ieee80211_device *ieee,
        entry = ieee80211_frag_cache_find(ieee, seq, -1, tid, hdr->addr2,
                                          hdr->addr1);
 
-       if (entry == NULL) {
+       if (!entry) {
                IEEE80211_DEBUG_FRAG(
                        "could not invalidate fragment cache "
                        "entry (seq=%u)\n", seq);