1. 20 Jun, 2014 29 commits
  2. 19 Jun, 2014 11 commits
    • James A Shackleford's avatar
      staging: skein: fix sparse warning for static arrays · df37d1ac
      James A Shackleford authored
      This patch fixes the following sparse warnings:
      
      skein_iv.h:23:11: warning: symbol 'SKEIN_256_IV_128' was not declared. Should it be static?
      skein_iv.h:31:11: warning: symbol 'SKEIN_256_IV_160' was not declared. Should it be static?
      skein_iv.h:39:11: warning: symbol 'SKEIN_256_IV_224' was not declared. Should it be static?
      skein_iv.h:47:11: warning: symbol 'SKEIN_256_IV_256' was not declared. Should it be static?
      skein_iv.h:55:11: warning: symbol 'SKEIN_512_IV_128' was not declared. Should it be static?
      skein_iv.h:67:11: warning: symbol 'SKEIN_512_IV_160' was not declared. Should it be static?
      skein_iv.h:79:11: warning: symbol 'SKEIN_512_IV_224' was not declared. Should it be static?
      skein_iv.h:91:11: warning: symbol 'SKEIN_512_IV_256' was not declared. Should it be static?
      skein_iv.h:103:11: warning: symbol 'SKEIN_512_IV_384' was not declared. Should it be static?
      skein_iv.h:115:11: warning: symbol 'SKEIN_512_IV_512' was not declared. Should it be static?
      skein_iv.h:127:11: warning: symbol 'SKEIN_1024_IV_384' was not declared. Should it be static?
      skein_iv.h:147:11: warning: symbol 'SKEIN_1024_IV_512' was not declared. Should it be static?
      skein_iv.h:167:11: warning: symbol 'SKEIN_1024_IV_1024' was not declared. Should it be static?
      
      by declaring the initialization vectors in question as static.  The header
      skein_iv.h is only included by skein.c
      Signed-off-by: default avatarJames A Shackleford <shack@linux.com>
      Acked-by: default avatarJason Cooper <jason@lakedaemon.net>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      df37d1ac
    • Marcus Farkas's avatar
      staging: rtl8821ae: fix sparse warning for static declarations · 949c4ef0
      Marcus Farkas authored
      This commit fixes the following sparse warnings in ps.c:
        - 702: warning: symbol 'rtl_p2p_noa_ie' was not declared. Should it be static?
        - 802: warning: symbol 'rtl_p2p_action_ie' was not declared. Should it be static?
      Signed-off-by: default avatarMarcus Farkas <marcus.farkas@finitebox.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      949c4ef0
    • Vitaly Osipov's avatar
      staging: rtl8712: replace kmalloc(..., sizeof(T)) · bd9dc62c
      Vitaly Osipov authored
      As suggested by Andy Shevchenko on driverdev-devel, replace
      v = ... sizeof(struct type_of_v) -> sizeof(*v)
      
      Based on a cocci patch along the lines of
      
      @@
      type T;
      expression E;
      identifier V;
      @@
      
      T *V;
      ...
      - V = kmalloc(sizeof(T), E);
      + V = kmalloc(sizeof(*V), E);
      
      @@
      type T;
      expression E;
      identifier V;
      @@
      
      T *V;
      ...
      - V = kzalloc(sizeof(T), E);
      + V = kzalloc(sizeof(*V), E);
      Signed-off-by: default avatarVitaly Osipov <vitaly.osipov@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      bd9dc62c
    • Rickard Strandqvist's avatar
      staging: rtl8712: rtl871x_ioctl_linux.c: Cleaning up useless if statement · 3ae70746
      Rickard Strandqvist authored
      The same code regardless of the outcome of the if statement.
      And clean up another duplicate line of code.
      Signed-off-by: default avatarRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      3ae70746
    • Arnd Bergmann's avatar
      staging: rtl8712, rtl8712: avoid lots of build warnings · 0c9f3a65
      Arnd Bergmann authored
      The rtl8712 driver has an 'extern inline' function that contains an
      'if', which causes lots of warnings with CONFIG_PROFILE_ALL_BRANCHES
      overriding the definition of 'if':
      
      drivers/staging/rtl8712/ieee80211.h:759:229: warning: '______f' is static but declared in inline function 'ieee80211_get_hdrlen' which is not static [enabled by default]
      
      This changes the driver to use 'static inline' instead, which happens
      to be the correct annotation anyway.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Cc: Larry Finger <Larry.Finger@lwfinger.net>
      Cc: Florian Schilhabel <florian.c.schilhabel@googlemail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      0c9f3a65
    • Thomas Vegas's avatar
      staging: rtl8712: Remove useless variable 'fw_found' · 22649bb2
      Thomas Vegas authored
      The net device only exists when firmware is loaded successfully.
      Firmware presence variable is only used through r871xu_dev_remove() and
      this function already checks for net device existence.
      Signed-off-by: default avatarThomas Vegas <thomas@grouk.net>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      22649bb2
    • Thomas Vegas's avatar
      staging: rtl8712: Fix oops on dongle removal if firmware is not available · 5947956b
      Thomas Vegas authored
      When firmware is not available, net device is not created. Upon
      disconnect, we must check for net device existence before trying to
      release net device private data.
      Signed-off-by: default avatarThomas Vegas <thomas@grouk.net>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      5947956b
    • Merlin Chlosta's avatar
      staging: vt6655: coding style: use C89 comments · 5c3ddb3a
      Merlin Chlosta authored
      fix coding style: use C89 comments, not C99
      Signed-off-by: default avatarMerlin Chlosta <eudyptula@merlin.geekmail.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      5c3ddb3a
    • Martin Kepplinger's avatar
      staging: vt6655: remove unnecessary typedef struct. · ff87dbc9
      Martin Kepplinger authored
      Remove a totally unnecessary typedef and rename it to lowercase.
      This is more readable now.
      Signed-off-by: default avatarMartin Kepplinger <martink@posteo.de>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      ff87dbc9
    • James A Shackleford's avatar
    • James A Shackleford's avatar
      staging: vt6655: fix sparse warning for static declarations · 14257463
      James A Shackleford authored
      This patch fixes the following sparse warnings:
      
      iwctl.c:76:22: warning: symbol 'iwctl_get_wireless_stats' was not declared. Should it be static?
      iwctl.c:118:5: warning: symbol 'iwctl_giwname' was not declared. Should it be static?
      iwctl.c:131:5: warning: symbol 'iwctl_siwscan' was not declared. Should it be static?
      iwctl.c:192:5: warning: symbol 'iwctl_giwscan' was not declared. Should it be static?
      iwctl.c:344:5: warning: symbol 'iwctl_siwfreq' was not declared. Should it be static?
      iwctl.c:390:5: warning: symbol 'iwctl_giwfreq' was not declared. Should it be static?
      iwctl.c:420:5: warning: symbol 'iwctl_siwmode' was not declared. Should it be static?
      iwctl.c:486:5: warning: symbol 'iwctl_giwmode' was not declared. Should it be static?
      iwctl.c:520:5: warning: symbol 'iwctl_giwrange' was not declared. Should it be static?
      iwctl.c:626:5: warning: symbol 'iwctl_siwap' was not declared. Should it be static?
      iwctl.c:684:5: warning: symbol 'iwctl_giwap' was not declared. Should it be static?
      iwctl.c:711:5: warning: symbol 'iwctl_giwaplist' was not declared. Should it be static?
      iwctl.c:784:5: warning: symbol 'iwctl_siwessid' was not declared. Should it be static?
      iwctl.c:893:5: warning: symbol 'iwctl_giwessid' was not declared. Should it be static?
      iwctl.c:923:5: warning: symbol 'iwctl_siwrate' was not declared. Should it be static?
      iwctl.c:1004:5: warning: symbol 'iwctl_giwrate' was not declared. Should it be static?
      iwctl.c:1049:5: warning: symbol 'iwctl_siwrts' was not declared. Should it be static?
      iwctl.c:1077:5: warning: symbol 'iwctl_giwrts' was not declared. Should it be static?
      iwctl.c:1096:5: warning: symbol 'iwctl_siwfrag' was not declared. Should it be static?
      iwctl.c:1123:5: warning: symbol 'iwctl_giwfrag' was not declared. Should it be static?
      iwctl.c:1141:5: warning: symbol 'iwctl_siwretry' was not declared. Should it be static?
      iwctl.c:1176:5: warning: symbol 'iwctl_giwretry' was not declared. Should it be static?
      iwctl.c:1205:5: warning: symbol 'iwctl_siwencode' was not declared. Should it be static?
      iwctl.c:1336:5: warning: symbol 'iwctl_giwencode' was not declared. Should it be static?
      iwctl.c:1398:5: warning: symbol 'iwctl_siwpower' was not declared. Should it be static?
      iwctl.c:1448:5: warning: symbol 'iwctl_giwpower' was not declared. Should it be static?
      iwctl.c:1478:5: warning: symbol 'iwctl_giwsens' was not declared. Should it be static?
      iwctl.c:1502:5: warning: symbol 'iwctl_siwauth' was not declared. Should it be static?
      iwctl.c:1603:5: warning: symbol 'iwctl_giwauth' was not declared. Should it be static?
      iwctl.c:1611:5: warning: symbol 'iwctl_siwgenie' was not declared. Should it be static?
      iwctl.c:1644:5: warning: symbol 'iwctl_giwgenie' was not declared. Should it be static?
      iwctl.c:1669:5: warning: symbol 'iwctl_siwencodeext' was not declared. Should it be static?
      iwctl.c:1783:5: warning: symbol 'iwctl_giwencodeext' was not declared. Should it be static?
      iwctl.c:1791:5: warning: symbol 'iwctl_siwmlme' was not declared. Should it be static?
      iwctl.c:1900:21: warning: symbol 'iwctl_private_args' was not declared. Should it be static?
      iwctl.c:1906:33: warning: symbol 'iwctl_handler_def' was not declared. Should it be static?
      Signed-off-by: default avatarJames A Shackleford <shack@linux.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      14257463