]> git.proxmox.com Git - mirror_ubuntu-kernels.git/blobdiff - drivers/staging/rt2860/common/spectrum.c
Merge branch 'drm-core-next' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied...
[mirror_ubuntu-kernels.git] / drivers / staging / rt2860 / common / spectrum.c
index 1dfb802aab9a4e93ae402def74a0d63c4d375e1e..c0d2f428069c171420903092cb205b82d3a44435 100644 (file)
@@ -416,8 +416,7 @@ void MeasureReqTabExit(struct rt_rtmp_adapter *pAd)
 {
        NdisFreeSpinLock(&pAd->CommonCfg.MeasureReqTabLock);
 
-       if (pAd->CommonCfg.pMeasureReqTab)
-               kfree(pAd->CommonCfg.pMeasureReqTab);
+       kfree(pAd->CommonCfg.pMeasureReqTab);
        pAd->CommonCfg.pMeasureReqTab = NULL;
 
        return;
@@ -614,8 +613,7 @@ void TpcReqTabExit(struct rt_rtmp_adapter *pAd)
 {
        NdisFreeSpinLock(&pAd->CommonCfg.TpcReqTabLock);
 
-       if (pAd->CommonCfg.pTpcReqTab)
-               kfree(pAd->CommonCfg.pTpcReqTab);
+       kfree(pAd->CommonCfg.pTpcReqTab);
        pAd->CommonCfg.pTpcReqTab = NULL;
 
        return;