1. 05 Mar, 2016 3 commits
    • Alison Schofield's avatar
      staging: speakup: remove multiple assignments · cd95ed98
      Alison Schofield authored
      Remove multiple assignments by factorizing.
      
      Coccinelle semantic patch used:
      @@ identifier x,y; constant z; @@
      - x=y=z;
      + x=z;
      + y=z;
      Signed-off-by: default avatarAlison Schofield <amsfield22@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      cd95ed98
    • Dilek Uzulmez's avatar
      Staging: speakup: Add space around '|' · e81e31fb
      Dilek Uzulmez authored
      Add space around operator '|'. Problem found using checkpatch.pl
      CHECK: spaces preferred around that '|' (ctx:VxV)
      Signed-off-by: default avatarDilek Uzulmez <dilekuzulmez@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      e81e31fb
    • James Simmons's avatar
      staging: lustre: handle complex strings in cfs_str2num_check · 3ad6152d
      James Simmons authored
      Originally the function cfs_str2num_check used simple_strtoul
      but has been updated to kstrtoul. The string passed into
      cfs_str2num_check can be a very complex, for example we could
      have 10.37.202.[59-61]. When simple_strtoul was used the first
      number until we hit a non-digit character could be extracted
      but testing showed that kstrtoul will not return any value if
      it detects any non-digit character. Because of this change in
      behavior a different approach is needed to handle these types
      of complex strings. The use of sscanf was investigated to see
      if it could be used to extract numbers from the passed in
      string but unlike its glibc counterpart the kernel version
      also just reported a error with no results if a non-digit value
      in the string was encountered. Another possible approach would
      be to use __parse_int directly but that class of functions is
      not exported by the kernel. So the approach in this patch is
      to scan the string passed in for the first non-digit character
      and replace that character with a '\0' so kstrtoul can be used.
      Once completed the original character is restored. We also
      restore a original behavior that was removed to return 0 when
      we encounter any non digit character before the nob count.
      Signed-off-by: default avatarJames Simmons <jsimmons@infradead.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      3ad6152d
  2. 04 Mar, 2016 12 commits
  3. 03 Mar, 2016 7 commits
  4. 02 Mar, 2016 18 commits