staging: rtl8192e: rtl8192e: rtl_cam.c: Remove unused function
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Sun, 7 Dec 2014 22:28:37 +0000 (23:28 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Jan 2015 22:06:03 +0000 (14:06 -0800)
Remove the function CAM_read_entry() that is not used anywhere.

This was partially found by using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/rtl_cam.c
drivers/staging/rtl8192e/rtl8192e/rtl_cam.h

index 6c64e0899ffd29cd2f11ac13347356abdc1a213c..89ea70b0d3aadd1e23ac130ff7fc7e80c85622f2 100644 (file)
@@ -167,35 +167,6 @@ void setKey(struct net_device *dev, u8 EntryNo, u8 KeyIndex, u16 KeyType,
        RT_TRACE(COMP_SEC, "=========>after set key, usconfig:%x\n", usConfig);
 }
 
-void CAM_read_entry(struct net_device *dev, u32 iIndex)
-{
-       u32 target_command = 0;
-       u32 target_content = 0;
-       u8 entry_i = 0;
-       u32 ulStatus;
-       s32 i = 100;
-
-       for (entry_i = 0; entry_i < CAM_CONTENT_COUNT; entry_i++) {
-               target_command = entry_i+CAM_CONTENT_COUNT*iIndex;
-               target_command = target_command | BIT31;
-
-               while ((i--) >= 0) {
-                       ulStatus = read_nic_dword(dev, RWCAM);
-                       if (ulStatus & BIT31)
-                               continue;
-                       else
-                               break;
-               }
-               write_nic_dword(dev, RWCAM, target_command);
-               RT_TRACE(COMP_SEC, "CAM_read_entry(): WRITE A0: %x\n",
-                        target_command);
-               target_content = read_nic_dword(dev, RCAMO);
-               RT_TRACE(COMP_SEC, "CAM_read_entry(): WRITE A8: %x\n",
-                        target_content);
-       }
-       printk(KERN_INFO "\n");
-}
-
 void CamRestoreAllEntry(struct net_device *dev)
 {
        u8 EntryId = 0;
index 7d075d3cbe62b4d97006669e6a844e2ec6bacb7a..3c4c0e61c18187d818e437ccc69c3201ad21d7ef 100644 (file)
@@ -41,6 +41,4 @@ void write_cam(struct net_device *dev, u8 addr, u32 data);
 
 void CamRestoreAllEntry(struct net_device *dev);
 
-void CAM_read_entry(struct net_device *dev, u32 iIndex);
-
 #endif