]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging:rtl8192u: Remove write_cam() - Style
authorJohn Whitmore <johnfwhitmore@gmail.com>
Fri, 31 Aug 2018 23:02:31 +0000 (00:02 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Sep 2018 15:11:26 +0000 (17:11 +0200)
Remove the function write_cam() as it is unused.

Simple style change which should not impact runtime code execution.

Signed-off-by: John Whitmore <johnfwhitmore@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/r8192U.h
drivers/staging/rtl8192u/r8192U_core.c

index 1b51601df1eeed84e05464610a092a3200e0cf1d..77324a471de183b07031c7ee64e1a19792a1b335 100644 (file)
@@ -1092,7 +1092,6 @@ short rtl819xU_tx_cmd(struct net_device *dev, struct sk_buff *skb);
 short rtl8192_tx(struct net_device *dev, struct sk_buff *skb);
 
 u32 read_cam(struct net_device *dev, u8 addr);
-void write_cam(struct net_device *dev, u8 addr, u32 data);
 
 int read_nic_byte(struct net_device *dev, int x, u8 *data);
 int read_nic_byte_E(struct net_device *dev, int x, u8 *data);
index f6ee605bd235b85a2643ea6c992a49766f759ad7..464a7ec8883bc3b626a8d0a70313c738180a746a 100644 (file)
@@ -237,13 +237,6 @@ static void CamResetAllEntry(struct net_device *dev)
        write_nic_dword(dev, RWCAM, ulcommand);
 }
 
-
-void write_cam(struct net_device *dev, u8 addr, u32 data)
-{
-       write_nic_dword(dev, WCAMI, data);
-       write_nic_dword(dev, RWCAM, BIT(31) | BIT(16) | (addr & 0xff));
-}
-
 u32 read_cam(struct net_device *dev, u8 addr)
 {
        u32 data;