mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-06-23 00:24:20 +00:00
rtl8188eu: Fix most sparse warnings other than endedness problems
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
925510ff1a
commit
327817d32a
47 changed files with 667 additions and 1771 deletions
|
@ -27,11 +27,13 @@
|
|||
#include <hal_intf.h>
|
||||
#include <rtw_version.h>
|
||||
#include <linux/usb.h>
|
||||
#include <osdep_intf.h>
|
||||
|
||||
#include <usb_vendor_req.h>
|
||||
#include <usb_ops.h>
|
||||
#include <usb_osintf.h>
|
||||
#include <usb_hal.h>
|
||||
#include <rtw_ioctl.h>
|
||||
#ifdef CONFIG_PLATFORM_RTK_DMP
|
||||
#include <asm/io.h>
|
||||
#endif
|
||||
|
@ -42,18 +44,11 @@
|
|||
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_80211N_HT
|
||||
extern int rtw_ht_enable;
|
||||
extern int rtw_cbw40_enable;
|
||||
extern int rtw_ampdu_enable;//for enable tx_ampdu
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_GLOBAL_UI_PID
|
||||
int ui_pid[3] = {0, 0, 0};
|
||||
#endif
|
||||
|
||||
|
||||
extern int pm_netdev_open(struct net_device *pnetdev,u8 bnormal);
|
||||
static int rtw_suspend(struct usb_interface *intf, pm_message_t message);
|
||||
static int rtw_resume(struct usb_interface *intf);
|
||||
int rtw_resume_process(_adapter *padapter);
|
||||
|
@ -277,7 +272,7 @@ static struct usb_device_id rtw_usb_id_tbl[] ={
|
|||
};
|
||||
MODULE_DEVICE_TABLE(usb, rtw_usb_id_tbl);
|
||||
|
||||
int const rtw_usb_id_len = sizeof(rtw_usb_id_tbl) / sizeof(struct usb_device_id);
|
||||
//int const rtw_usb_id_len = sizeof(rtw_usb_id_tbl) / sizeof(struct usb_device_id);
|
||||
|
||||
static struct specific_device_id specific_device_id_tbl[] = {
|
||||
{.idVendor=USB_VENDER_ID_REALTEK, .idProduct=0x8177, .flags=SPEC_DEV_ID_DISABLE_HT},//8188cu 1*1 dongole, (b/g mode only)
|
||||
|
@ -382,7 +377,7 @@ static struct usb_device_id rtl8188e_usb_id_tbl[] ={
|
|||
{} /* Terminating entry */
|
||||
};
|
||||
|
||||
struct rtw_usb_drv rtl8188e_usb_drv = {
|
||||
static struct rtw_usb_drv rtl8188e_usb_drv = {
|
||||
.usbdrv.name = (char*)"rtl8188eu",
|
||||
.usbdrv.probe = rtw_drv_init,
|
||||
.usbdrv.disconnect = rtw_dev_remove,
|
||||
|
@ -1298,9 +1293,9 @@ static int usb_wifi_host = 2;
|
|||
* We accept the new device by returning 0.
|
||||
*/
|
||||
|
||||
_adapter *rtw_sw_export = NULL;
|
||||
static _adapter *rtw_sw_export = NULL;
|
||||
|
||||
_adapter *rtw_usb_if1_init(struct dvobj_priv *dvobj,
|
||||
static _adapter *rtw_usb_if1_init(struct dvobj_priv *dvobj,
|
||||
struct usb_interface *pusb_intf, const struct usb_device_id *pdid)
|
||||
{
|
||||
_adapter *padapter = NULL;
|
||||
|
@ -1468,7 +1463,7 @@ _adapter *rtw_usb_if1_init(struct dvobj_priv *dvobj,
|
|||
|
||||
free_hal_data:
|
||||
if (status != _SUCCESS && padapter->HalData)
|
||||
rtw_mfree(padapter->HalData, sizeof(*(padapter->HalData)));
|
||||
kfree(padapter->HalData);
|
||||
free_wdev:
|
||||
if (status != _SUCCESS) {
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue