Commit baf3a011 authored by navin patidar's avatar navin patidar Committed by Greg Kroah-Hartman

staging: rtl8188eu:Assign RTL8188E to padapter->chip_type directly

Assign RTL8188E to padapter->chip_type directly instead of calling
chip_by_usb_id() function to do same.
Signed-off-by: default avatarnavin patidar <navin.patidar@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c95c5117
...@@ -546,11 +546,8 @@ static struct adapter *rtw_usb_if1_init(struct dvobj_priv *dvobj, ...@@ -546,11 +546,8 @@ static struct adapter *rtw_usb_if1_init(struct dvobj_priv *dvobj,
dvobj->if1 = padapter; dvobj->if1 = padapter;
padapter->bDriverStopped = true; padapter->bDriverStopped = true;
padapter->hw_init_mutex = &usb_drv->hw_init_mutex; padapter->hw_init_mutex = &usb_drv->hw_init_mutex;
padapter->chip_type = RTL8188E;
/* step 1-1., decide the chip_type via vid/pid */
chip_by_usb_id(padapter, pdid);
if (rtw_handle_dualmac(padapter, 1) != _SUCCESS) if (rtw_handle_dualmac(padapter, 1) != _SUCCESS)
goto free_adapter; goto free_adapter;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment