mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
staging: rtl8723bs: remove unnecessary adapter
The if2 adapter is defined in rtw_dvr_init() and in the dvobj_priv structure but never used anywhere in the driver. This will remove all definitions of if2 Signed-off-by: Bryan Brattlof <hello@bryanbrattlof.com> Link: https://lore.kernel.org/r/20210412172147.43509-1-hello@bryanbrattlof.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
1ec0ee058d
commit
59bc0e634b
2 changed files with 4 additions and 7 deletions
|
@ -268,7 +268,6 @@ struct cam_entry_cache {
|
|||
struct dvobj_priv {
|
||||
/*-------- below is common data --------*/
|
||||
struct adapter *if1; /* PRIMARY_ADAPTER */
|
||||
struct adapter *if2; /* SECONDARY_ADAPTER */
|
||||
|
||||
s32 processing_dev_remove;
|
||||
|
||||
|
|
|
@ -369,7 +369,7 @@ static int rtw_drv_init(
|
|||
const struct sdio_device_id *id)
|
||||
{
|
||||
int status = _FAIL;
|
||||
struct adapter *if1 = NULL, *if2 = NULL;
|
||||
struct adapter *if1 = NULL;
|
||||
struct dvobj_priv *dvobj;
|
||||
|
||||
dvobj = sdio_dvobj_init(func);
|
||||
|
@ -383,17 +383,15 @@ static int rtw_drv_init(
|
|||
/* dev_alloc_name && register_netdev */
|
||||
status = rtw_drv_register_netdev(if1);
|
||||
if (status != _SUCCESS)
|
||||
goto free_if2;
|
||||
goto free_if1;
|
||||
|
||||
if (sdio_alloc_irq(dvobj) != _SUCCESS)
|
||||
goto free_if2;
|
||||
goto free_if1;
|
||||
|
||||
rtw_ndev_notifier_register();
|
||||
status = _SUCCESS;
|
||||
|
||||
free_if2:
|
||||
if (status != _SUCCESS && if2) {
|
||||
}
|
||||
free_if1:
|
||||
if (status != _SUCCESS && if1)
|
||||
rtw_sdio_if1_deinit(if1);
|
||||
|
||||
|
|
Loading…
Reference in a new issue