staging: rtl8192e: Remove dead code in CamResetAllEntry()
authorMike McCormack <mikem@ring3k.org>
Mon, 20 Sep 2010 14:12:29 +0000 (23:12 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 21 Sep 2010 17:57:01 +0000 (10:57 -0700)
Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rtl8192e/r8192E_core.c

index 34a8450f72bb60c4bc6e8309a2f9b18fb9dda6df..01339807850f95eb07e225a4543144315adadc23 100644 (file)
@@ -253,18 +253,7 @@ static TX_FWINFO_T Tmp_TxFwInfo;
 
 void CamResetAllEntry(struct net_device *dev)
 {
-       //u8 ucIndex;
-       u32 ulcommand = 0;
-
-#if 1
-       ulcommand |= BIT31|BIT30;
-       write_nic_dword(dev, RWCAM, ulcommand);
-#else
-        for(ucIndex=0;ucIndex<TOTAL_CAM_ENTRY;ucIndex++)
-                CAM_mark_invalid(dev, ucIndex);
-        for(ucIndex=0;ucIndex<TOTAL_CAM_ENTRY;ucIndex++)
-                CAM_empty_entry(dev, ucIndex);
-#endif
+       write_nic_dword(dev, RWCAM, BIT31|BIT30);
 }