1. 10 1月, 2014 24 次提交
  2. 09 1月, 2014 16 次提交
    • L
      staging: r8188eu: Fix sparse warnings in core/rtw_br_ext.c · 55323187
      Larry Finger 提交于
      Sparse lists the following:
      
        CHECK   drivers/staging/rtl8188eu/core/rtw_br_ext.c
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:700:101: warning: incorrect type in argument 2 (different base types)
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:700:101:    expected unsigned int *ipxNetAddr
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:700:101:    got restricted __be32 *<noident>
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:700:123: warning: incorrect type in argument 3 (different base types)
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:700:123:    expected unsigned short *ipxSocketAddr
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:700:123:    got restricted __be16 *<noident>
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:705:99: warning: incorrect type in argument 2 (different base types)
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:705:99:    expected unsigned int *ipxNetAddr
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:705:99:    got restricted __be32 *<noident>
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:714:101: warning: incorrect type in argument 2 (different base types)
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:714:101:    expected unsigned int *ipxNetAddr
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:714:101:    got restricted __be32 *<noident>
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:714:121: warning: incorrect type in argument 3 (different base types)
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:714:121:    expected unsigned short *ipxSocketAddr
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:714:121:    got restricted __be16 *<noident>
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:721:99: warning: incorrect type in argument 2 (different base types)
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:721:99:    expected unsigned int *ipxNetAddr
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:721:99:    got restricted __be32 *<noident>
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:749:83: warning: incorrect type in argument 2 (different base types)
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:749:83:    expected unsigned short *network
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:749:83:    got restricted __be16 *<noident>
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:762:83: warning: incorrect type in argument 2 (different base types)
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:762:83:    expected unsigned short *network
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:762:83:    got restricted __be16 *<noident>
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:783:83: warning: incorrect type in argument 2 (different base types)
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:783:83:    expected unsigned short *network
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:783:83:    got restricted __be16 *<noident>
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:795:83: warning: incorrect type in argument 2 (different base types)
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:795:83:    expected unsigned short *network
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:795:83:    got restricted __be16 *<noident>
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:849:57: warning: incorrect type in assignment (different base types)
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:849:57:    expected unsigned short [unsigned] [short] <noident>
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:849:57:    got restricted __be16 [usertype] <noident>
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:92:23: warning: restricted __be16 degrades to integer
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:876:95: warning: incorrect type in argument 3 (different base types)
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:876:95:    expected unsigned short *sid
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:876:95:    got restricted __be16 *<noident>
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:912:45: warning: cast to restricted __be16
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:912:45: warning: cast to restricted __be16
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:912:45: warning: cast to restricted __be16
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:912:45: warning: cast to restricted __be16
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:944:112: warning: incorrect type in argument 3 (different base types)
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:944:112:    expected unsigned short *sid
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:944:112:    got restricted __be16 *<noident>
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:1019:84: warning: incorrect type in argument 3 (different base types)
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:1019:84:    expected unsigned int [unsigned] [usertype] len
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:1019:84:    got restricted __be16 [usertype] payload_len
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:1021:110: warning: incorrect type in argument 2 (different base types)
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:1021:110:    expected int [signed] len
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:1021:110:    got restricted __be16 [usertype] payload_len
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:1145:54: warning: cast to restricted __be32
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:1145:54: warning: cast to restricted __be32
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:1145:54: warning: cast to restricted __be32
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:1145:54: warning: cast to restricted __be32
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:1145:54: warning: cast to restricted __be32
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:1145:54: warning: cast to restricted __be32
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:1148:70: warning: restricted __be16 degrades to integer
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:1154:70: warning: invalid assignment: |=
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:1154:70:    left side has type unsigned short
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:1154:70:    right side has type restricted __be16
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:1157:64: warning: cast to restricted __be16
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:1157:64: warning: cast to restricted __be16
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:1157:64: warning: cast to restricted __be16
      drivers/staging/rtl8188eu/core/rtw_br_ext.c:1157:64: warning: cast to restricted __be16
      Signed-off-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      55323187
    • L
      staging: r8188eu: Fix sparse warning in core/rtw_xmit.c · 7e83fd6d
      Larry Finger 提交于
      Sparse reports the following warning:
      
        CHECK   drivers/staging/rtl8188eu/core/rtw_xmit.c
      drivers/staging/rtl8188eu/core/rtw_xmit.c:809:23: warning: incorrect type in initializer (different base types)
      drivers/staging/rtl8188eu/core/rtw_xmit.c:809:23:    expected unsigned short [usertype] *fctrl
      drivers/staging/rtl8188eu/core/rtw_xmit.c:809:23:    got restricted __le16 *<noident>
      Signed-off-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      7e83fd6d
    • L
      staging: r8188eu: Fix sparse warning in core/rtw_pwrctrl.c · 718aa548
      Larry Finger 提交于
      Sparse reports the following:
      
        CHECK   drivers/staging/rtl8188eu/core/rtw_pwrctrl.c
      drivers/staging/rtl8188eu/core/rtw_pwrctrl.c:525:6: warning: symbol 'rtw_free_pwrctrl_priv' was not declared. Should it be static?
      
      That routine is not used and has been deleted.
      Signed-off-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      718aa548
    • L
      staging: r8188eu: Fix sparse warning in core/rtw_sta_mgt.c · 1f8e635f
      Larry Finger 提交于
      Sparse reports the following:
      
        CHECK   drivers/staging/rtl8188eu/core/rtw_sta_mgt.c
      drivers/staging/rtl8188eu/core/rtw_sta_mgt.c:152:6: warning: symbol 'rtw_mfree_all_stainfo' was not declared. Should it be static?
      Signed-off-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      1f8e635f
    • L
      staging: r8188eu: Eliminate enum ODM_RADIO_PATH in favor of rf_radio_path · cc25137f
      Larry Finger 提交于
      There are two different enum statements that have been combined.
      Signed-off-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      cc25137f
    • L
      staging: r8188eu: Cleanup of include/hal_intf.h · 5fd5ca57
      Larry Finger 提交于
      This driver only handles RTL8188EU with USB interface, thus several hardware
      defines and macros can be removed.
      Signed-off-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      5fd5ca57
    • L
      staging: r8188eu: Additional cleanup of include/odm.h · f395036d
      Larry Finger 提交于
      This driver only works with the USB bus. Accordingly, enum odm_interface_def
      can be removed along with all code that uses ODM_ITRF_XXX, where XXX is not USB.
      
      In enum odm_ic_type, only ODM_RTL8188E is used. Remove the enum, all references
      to the others, and define the needed value.
      Signed-off-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      f395036d
    • L
      staging: r8188eu: Remove unneeded prototypes from include/odm.h · e02a0089
      Larry Finger 提交于
      This header contains a number of routines that do not to be available
      globally. Once this change was made, a number of the routines were not
      used, and could be removed.
      Signed-off-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      e02a0089
    • L
      staging: r8188eu: Simplify code related to SupportICType · 6c0a555e
      Larry Finger 提交于
      This member of struct odm_dm_struct is always set to ODM_RTL8188E for this
      driver. Accordingly, the code can be simplified. A number of routines
      now are no longer needed and are deleted.
      Signed-off-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      6c0a555e
    • L
      staging: r8188eu: Simplify code concerning SupportPlatform · 0735ea67
      Larry Finger 提交于
      This member of struct odm_dm_struct is always set to ODM_CE in this driver.
      As a result, a number of switch and if statements can be simplified. In
      addition, a number of routines are no longer used and can be removed.
      Signed-off-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      0735ea67
    • L
      staging: r8188eu: Remove even more empty routines · e96031d0
      Larry Finger 提交于
      This patch removes the following:
      
      odm_DynamicTxPowerAP
      odm_RSSIMonitorCheckMP
      odm_RSSIMonitorCheckAP
      odm_TXPowerTrackingCheckMP
      odm_TXPowerTrackingCheckAP
      odm_SwAntDivInit
      ODM_SwAntDivChkPerPktRssi
      odm_SwAntDivChkAntSwitch
      ODM_SwAntDivRestAfterLink
      dm_GlobalAdapterCheck
      odm_dtc
      Signed-off-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      e96031d0
    • L
      staging: r8188eu: Remove more empty routines · 36298867
      Larry Finger 提交于
      This batch includes
      
      ODM_StartWorkItem
      ODM_StopWorkItem
      ODM_FreeWorkItem
      ODM_AcquireSpinLoc
      ODM_ReleaseSpinLock
      ODM_ReleaseTimer
      ODM_ReleaseAllTimers
      Signed-off-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      36298867
    • L
      staging: r8188eu: Remove - number of dummy and unused routines · 9ec6f1d2
      Larry Finger 提交于
      These routines include:
      ODM_StartWorkItem()
      ODM_StopWorkItem()
      ODM_FreeWorkItem()
      ODM_ScheduleWorkItem()
      ODM_IsWorkItemScheduled()
      Signed-off-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      9ec6f1d2
    • L
      staging: r8188eu: Remove macro ODM_GetMACReg · 3b6de322
      Larry Finger 提交于
      This is equivalent to PHY_GetBBReg.
      Signed-off-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      3b6de322
    • L
      staging: r8188eu: Remove macro ODM_SetMACReg · f4f320e6
      Larry Finger 提交于
      This is the same as macro PHY_SetBBReg.
      Signed-off-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      f4f320e6
    • L
      staging: r8188eu: Remove macro ODM_GetRFReg · 5ec55c52
      Larry Finger 提交于
      This one is a duplicate od macro PHY_QueryRFReg.
      Signed-off-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      5ec55c52