drivers/staging/rtl8821ae/rtl8821ae/hal_btc.c: remove unnecessary null test before...
authorFabian Frederick <fabf@skynet.be>
Sat, 28 Jun 2014 11:22:59 +0000 (13:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 29 Jun 2014 21:34:42 +0000 (14:34 -0700)
Fix checkpatch warning:
WARNING: kfree(NULL) is safe this check is probably not required

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Cc: devel@driverdev.osuosl.org
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8821ae/rtl8821ae/hal_btc.c

index 25e751b0962a7c8c9d69b6c00d588b47192d123a..f885ca77344b9c9af013652f4a20b0cb2e793664 100644 (file)
@@ -2045,8 +2045,7 @@ void rtl_8821ae_c2h_command_handle(struct ieee80211_hw *hw)
                break;
        }
 
-       if(ptmp_buf)
-               kfree(ptmp_buf);
+       kfree(ptmp_buf);
 
        rtl_write_byte(rtlpriv, 0x01AF, C2H_EVT_HOST_CLOSE);
 }