mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-16 09:56:46 +00:00
staging: rtl8192u: dm_shadow_init() is not used
The function dm_shadow_init() is not used anywhere, remove it. Signed-off-by: Michael Straube <straube.linux@gmail.com> Link: https://lore.kernel.org/r/20230312073247.9822-3-straube.linux@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
00b2c0918b
commit
73633855a6
@ -2859,44 +2859,6 @@ void dm_check_fsync(struct net_device *dev)
|
||||
}
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------------------------
|
||||
* Function: dm_shadow_init()
|
||||
*
|
||||
* Overview: Store all NIC MAC/BB register content.
|
||||
*
|
||||
* Input: NONE
|
||||
*
|
||||
* Output: NONE
|
||||
*
|
||||
* Return: NONE
|
||||
*
|
||||
* Revised History:
|
||||
* When Who Remark
|
||||
* 05/29/2008 amy Create Version 0 porting from windows code.
|
||||
*
|
||||
*---------------------------------------------------------------------------
|
||||
*/
|
||||
void dm_shadow_init(struct net_device *dev)
|
||||
{
|
||||
u8 page;
|
||||
u16 offset;
|
||||
|
||||
for (page = 0; page < 5; page++)
|
||||
for (offset = 0; offset < 256; offset++) {
|
||||
read_nic_byte(dev, offset + page * 256, &dm_shadow[page][offset]);
|
||||
/*DbgPrint("P-%d/O-%02x=%02x\r\n", page, offset, DM_Shadow[page][offset]);*/
|
||||
}
|
||||
|
||||
for (page = 8; page < 11; page++)
|
||||
for (offset = 0; offset < 256; offset++)
|
||||
read_nic_byte(dev, offset + page * 256, &dm_shadow[page][offset]);
|
||||
|
||||
for (page = 12; page < 15; page++)
|
||||
for (offset = 0; offset < 256; offset++)
|
||||
read_nic_byte(dev, offset + page * 256, &dm_shadow[page][offset]);
|
||||
|
||||
} /* dm_shadow_init */
|
||||
|
||||
/*---------------------------Define function prototype------------------------*/
|
||||
/*-----------------------------------------------------------------------------
|
||||
* Function: DM_DynamicTxPower()
|
||||
|
@ -168,7 +168,6 @@ void dm_rf_operation_test_callback(unsigned long data);
|
||||
void dm_rf_pathcheck_workitemcallback(struct work_struct *work);
|
||||
void dm_fsync_work_callback(struct work_struct *work);
|
||||
void dm_cck_txpower_adjust(struct net_device *dev, bool binch14);
|
||||
void dm_shadow_init(struct net_device *dev);
|
||||
void dm_initialize_txpower_tracking(struct net_device *dev);
|
||||
/*--------------------------Exported Function prototype---------------------*/
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user