Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 236459
b: refs/heads/master
c: aea9d72
h: refs/heads/master
i:
  236457: 96fb028
  236455: e81a090
v: v3
  • Loading branch information
Ilia Mirkin authored and Greg Kroah-Hartman committed Mar 14, 2011
1 parent d9cafa5 commit 5fe8538
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 14910178fcdcca53230afd4155a6c48e230b2919
refs/heads/master: aea9d72f97218d45e993836bcb6c6e6fd49e0b90
6 changes: 2 additions & 4 deletions trunk/drivers/staging/rt2860/common/spectrum.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
6 changes: 2 additions & 4 deletions trunk/drivers/staging/rt2860/rt_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,7 @@ void RTMPFreeAdapter(struct rt_rtmp_adapter *pAd)

os_cookie = (struct os_cookie *)pAd->OS_Cookie;

if (pAd->BeaconBuf)
kfree(pAd->BeaconBuf);
kfree(pAd->BeaconBuf);

NdisFreeSpinLock(&pAd->MgmtRingLock);

Expand All @@ -264,8 +263,7 @@ void RTMPFreeAdapter(struct rt_rtmp_adapter *pAd)
release_firmware(pAd->firmware);

vfree(pAd); /* pci_free_consistent(os_cookie->pci_dev,sizeof(struct rt_rtmp_adapter),pAd,os_cookie->pAd_pa); */
if (os_cookie)
kfree(os_cookie);
kfree(os_cookie);
}

BOOLEAN OS_Need_Clone_Packet(void)
Expand Down

0 comments on commit 5fe8538

Please sign in to comment.