rtlwifi: Fix static checker warnings for various drivers
[cascardo/linux.git] / drivers / net / wireless / rtlwifi / rtl8723ae / trx.c
index 1da2367..d372cca 100644 (file)
@@ -491,12 +491,6 @@ bool rtl8723e_rx_query_desc(struct ieee80211_hw *hw,
         * to decrypt it
         */
        if (status->decrypted) {
-               if (!hdr) {
-                       WARN_ON_ONCE(true);
-                       pr_err("decrypted is true but hdr NULL, from skb %p\n",
-                              rtl_get_hdr(skb));
-                       return false;
-               }
                if ((!_ieee80211_is_robust_mgmt_frame(hdr)) &&
                    (ieee80211_has_protected(hdr->frame_control)))
                        rx_status->flag |= RX_FLAG_DECRYPTED;