mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
staging: rtl8192u: remove code inside #ifdef RTL8190P in r819xU_firmware.c
This patch removes the unused code that resides inside #ifdef RTL8190P since RTL8190P is not defined. Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ea1751438a
commit
ba9aabb710
1 changed files with 0 additions and 15 deletions
|
@ -295,16 +295,10 @@ bool init_firmware(struct net_device *dev)
|
|||
mapped_file = pfirmware->firmware_buf;
|
||||
file_length = fw_entry->size;
|
||||
} else {
|
||||
#ifdef RTL8190P
|
||||
memcpy(pfirmware->firmware_buf,fw_entry->data,fw_entry->size);
|
||||
mapped_file = pfirmware->firmware_buf;
|
||||
file_length = fw_entry->size;
|
||||
#else
|
||||
memset(pfirmware->firmware_buf,0,128);
|
||||
memcpy(&pfirmware->firmware_buf[128],fw_entry->data,fw_entry->size);
|
||||
mapped_file = pfirmware->firmware_buf;
|
||||
file_length = fw_entry->size + 128;
|
||||
#endif
|
||||
}
|
||||
pfirmware->firmware_buf_size = file_length;
|
||||
}else if (rst_opt == OPT_FIRMWARE_RESET ) {
|
||||
|
@ -336,15 +330,6 @@ bool init_firmware(struct net_device *dev)
|
|||
* will set polling bit when firmware code is also configured
|
||||
*/
|
||||
pfirmware->firmware_status = FW_STATUS_1_MOVE_BOOT_CODE;
|
||||
#ifdef RTL8190P
|
||||
// To initialize IMEM, CPU move code from 0x80000080, hence, we send 0x80 byte packet
|
||||
rt_status = fwSendNullPacket(dev, RTL8190_CPU_START_OFFSET);
|
||||
if (rt_status != true)
|
||||
{
|
||||
RT_TRACE(COMP_INIT, "fwSendNullPacket() fail ! \n");
|
||||
goto download_firmware_fail;
|
||||
}
|
||||
#endif
|
||||
//mdelay(1000);
|
||||
/*
|
||||
* To initialize IMEM, CPU move code from 0x80000080,
|
||||
|
|
Loading…
Reference in a new issue