1. 07 6月, 2012 1 次提交
    • J
      wireless: Remove casts to same type · 2c208890
      Joe Perches 提交于
      Adding casts of objects to the same type is unnecessary
      and confusing for a human reader.
      
      For example, this cast:
      
              int y;
              int *p = (int *)&y;
      
      I used the coccinelle script below to find and remove these
      unnecessary casts.  I manually removed the conversions this
      script produces of casts with __force, __iomem and __user.
      
      @@
      type T;
      T *p;
      @@
      
      -       (T *)p
      +       p
      
      Neatened the mwifiex_deauthenticate_infra function which
      was doing odd things with array pointers and not using
      is_zero_ether_addr.
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2c208890
  2. 31 1月, 2012 2 次提交
  3. 25 1月, 2012 6 次提交
  4. 20 12月, 2011 1 次提交
  5. 22 11月, 2011 1 次提交
  6. 22 7月, 2011 1 次提交
  7. 21 6月, 2011 1 次提交
  8. 27 4月, 2011 3 次提交
  9. 15 4月, 2011 1 次提交
    • L
      rtlwifi: Fix unitialized variable warnings · 9f219bd2
      Larry Finger 提交于
      In http://lkml.indiana.edu/hypermail/linux/kernel/1104.1/01955.html, Geerti
      Uytterhoeven reports the following warnings for the rtlwifi drivers.
      
      src/drivers/net/wireless/rtlwifi/rtl8192c/dm_common.c: warning:
      	 'cck_index' may be used uninitialized in this function: => 637
      src/drivers/net/wireless/rtlwifi/rtl8192c/dm_common.c: warning:
      	 'cck_index_old' may be used uninitialized in this function: => 637
      src/drivers/net/wireless/rtlwifi/rtl8192c/fw_common.c: warning:
      	 'box_extreg' may be used uninitialized in this function: => 303
      src/drivers/net/wireless/rtlwifi/rtl8192c/fw_common.c: warning:
      	 'box_reg' may be used uninitialized in this function: => 303
      src/drivers/net/wireless/rtlwifi/rtl8192ce/rf.c: warning:
      	 'chnlgroup' may be used uninitialized in this function: => 205
      src/drivers/net/wireless/rtlwifi/rtl8192ce/rf.c: warning:
      	 'u4_regvalue' may be used uninitialized in this function: => 450
      src/drivers/net/wireless/rtlwifi/rtl8192cu/hw.c: warning:
      	 'hq_sele' may be used uninitialized in this function: => 924
      Signed-off-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      9f219bd2
  10. 24 2月, 2011 1 次提交
    • L
      rtlwifi: rtl8192ce: rtl8192cu: Fix multiple def errors for allyesconfig build · 1472d3a8
      Larry Finger 提交于
      As noted by Stephan Rothwell, an allyesconfig build fails since rtl8192cu
      was merged with failures such as:
      
      drivers/net/wireless/rtlwifi/rtl8192cu/built-in.o: In function `rtl92c_phy_sw_chnl':
      (.opd+0xf30): multiple definition of `rtl92c_phy_sw_chnl'
      drivers/net/wireless/rtlwifi/rtl8192ce/built-in.o:(.opd+0xb70): first defined here
      drivers/net/wireless/rtlwifi/rtl8192cu/built-in.o: In function `rtl92c_fill_h2c_cmd':
      (.opd+0x288): multiple definition of `rtl92c_fill_h2c_cmd'
      drivers/net/wireless/rtlwifi/rtl8192ce/built-in.o:(.opd+0x288): first defined here
      
      These are caused because the code shared between rtl8192ce and rtl8192cu
      is included in both drivers. This has been fixed by creating a new modue that
      contains the shared code.
      Signed-off-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      1472d3a8
  11. 22 2月, 2011 1 次提交