1. 02 Aug, 2018 17 commits
  2. 01 Aug, 2018 21 commits
  3. 30 Jul, 2018 2 commits
    • Colin Ian King's avatar
      iio: light: si1133 fix test for val being not zero or not one. · 1e96e93a
      Colin Ian King authored
      The current check on val always results in true and so the
      call to sii1133_update_adcsens never gets called. Fix this check
      so it returns with -EINVAL only when val is not zero and not one.
      
      Detected by CoverityScan, CID#1472099 ("Logically dead code")
      
      Fixes: e01e7eaf ("iio: light: introduce si1133")
      Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
      Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
      1e96e93a
    • John Whitmore's avatar
      staging:rtl8192u: Refactor enum DM_CCK_Rx_Path_Method - Style · 1c58e9cc
      John Whitmore authored
      The enumerated type DM_CCK_Rx_Path_Method is used as a container for
      constant definitions, rather then an enumerated type enabling compiler
      type checking. To correct this, the variable which uses the constants,
      defined by the enumeration, has had its type changed from a u8 to the
      enumeration.
      
      Additionally the type has been moved above the structure where the type
      is used, to avoid compiler error. The typedef has been removed from the
      enumerated type to clear the checkpatch issue with defining new types.
      The name of the type has been changed to cck_rx_path_method to clear
      the checkpatch issue with CamelCase naming. And the enumerated constant
      CCK_Rx_Version_MAX has been removed, since it is never used in code.
      
      The changes are all coding style in nature and so should have no
      impact on runtime code execution.
      Signed-off-by: default avatarJohn Whitmore <johnfwhitmore@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      1c58e9cc