1. 09 2月, 2013 1 次提交
    • T
      brcmsmac: fix u16 overflow warning · 708eb54f
      Tim Gardner 提交于
      DOT11_MIN_BEACON_PERIOD and DOT11_MAX_BEACON_PERIOD are
      superfluous. The only invalid beacon period is 0. Comparing
      a 16 bit quantity to 0xffff also causes a compile warning:
      
      drivers/net/wireless/brcm80211/brcmsmac/main.c:5560 brcms_c_set_beacon_period()
       warn: impossible condition '(period > 65535) => (0-65535 > 65535)'
      
      Observed from smatch analysis.
      
      Cc: Brett Rudley <brudley@broadcom.com>
      Cc: Arend van Spriel <arend@broadcom.com>
      Cc: "Franky (Zhenhui) Lin" <frankyl@broadcom.com>
      Cc: Hante Meuleman <meuleman@broadcom.com>
      Cc: "John W. Linville" <linville@tuxdriver.com>
      Cc: Pieter-Paul Giesberts <pieterpg@broadcom.com>
      Cc: Seth Forshee <seth.forshee@canonical.com>
      Cc: Hauke Mehrtens <hauke@hauke-m.de>
      Cc: linux-wireless@vger.kernel.org
      Cc: brcm80211-dev-list@broadcom.com
      Cc: netdev@vger.kernel.org
      Signed-off-by: NTim Gardner <tim.gardner@canonical.com>
      Acked-by: NArend van Spriel <arend@broadcom.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      708eb54f
  2. 08 1月, 2013 2 次提交
  3. 11 12月, 2012 3 次提交
  4. 01 12月, 2012 3 次提交
  5. 22 11月, 2012 1 次提交
  6. 21 11月, 2012 15 次提交
  7. 14 11月, 2012 1 次提交
  8. 20 10月, 2012 1 次提交
  9. 07 8月, 2012 1 次提交
  10. 13 7月, 2012 1 次提交
  11. 11 7月, 2012 5 次提交
  12. 21 6月, 2012 2 次提交
  13. 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
  14. 17 5月, 2012 3 次提交