1. 24 May, 2019 9 commits
  2. 23 May, 2019 9 commits
  3. 22 May, 2019 19 commits
  4. 21 May, 2019 3 commits
    • Jeremy Sowden's avatar
      staging: kpc2000: removed two kpc_uio_class device attributes. · e033958e
      Jeremy Sowden authored
      The show functions of two attributes output nothing and they are unused.
      Removed them.
      Signed-off-by: default avatarJeremy Sowden <jeremy@azazel.net>
      Reported-by: default avatarMatt Sickler <matt.sickler@daktronics.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      e033958e
    • Jeremy Sowden's avatar
      staging: kpc2000: added separate show functions for kpc_uio_class device... · cd88d2b1
      Jeremy Sowden authored
      staging: kpc2000: added separate show functions for kpc_uio_class device attributes, defined them as read-only and declared them static.
      
      Defined separate simple show functions for each attribute instead of
      having a one big one containing a chain of conditionals.
      
      Replaced scnprintf calls with sprintf since all the outputs are short
      bounded strings or single integers.
      
      All of the device attributes are read-only, so used DEVICE_ATTR_RO to
      define them.
      
      The definitions are only used to populate the kpc_uio_class_attrs
      attribute array, so declared them as static.
      
      Fixes the following sparse warnings:
      
        drivers/staging/kpc2000/kpc2000/cell_probe.c:220:1: warning: symbol 'dev_attr_offset' was not declared. Should it be static?
        drivers/staging/kpc2000/kpc2000/cell_probe.c:221:1: warning: symbol 'dev_attr_size' was not declared. Should it be static?
        drivers/staging/kpc2000/kpc2000/cell_probe.c:222:1: warning: symbol 'dev_attr_type' was not declared. Should it be static?
        drivers/staging/kpc2000/kpc2000/cell_probe.c:223:1: warning: symbol 'dev_attr_s2c_dma' was not declared. Should it be static?
        drivers/staging/kpc2000/kpc2000/cell_probe.c:224:1: warning: symbol 'dev_attr_c2s_dma' was not declared. Should it be static?
        drivers/staging/kpc2000/kpc2000/cell_probe.c:225:1: warning: symbol 'dev_attr_irq_count' was not declared. Should it be static?
        drivers/staging/kpc2000/kpc2000/cell_probe.c:226:1: warning: symbol 'dev_attr_irq_base_num' was not declared. Should it be static?
        drivers/staging/kpc2000/kpc2000/cell_probe.c:227:1: warning: symbol 'dev_attr_core_num' was not declared. Should it be static?
      Signed-off-by: default avatarJeremy Sowden <jeremy@azazel.net>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      cd88d2b1
    • Nishka Dasgupta's avatar
      staging: rtl8723bs: hal: Remove unused variable · ae63ed4c
      Nishka Dasgupta authored
      Remove local variable psdio which is declared but not used (or returned)
      in its function.
      Issue found with Coccinelle.
      Signed-off-by: default avatarNishka Dasgupta <nishka.dasgupta@yahoo.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      ae63ed4c