21 May, 2019

1 commit


02 May, 2019

31 commits


14 Apr, 2019

4 commits

  • These two files are implicitly relying on an instance of including
    module.h from .

    Ideally, header files under include/linux shouldn't be adding
    includes of other headers, in anticipation of their consumers,
    but just the headers needed for the header itself to pass
    parsing with CPP.

    The module.h is particularly bad in this sense, as it itself does
    include a whole bunch of other headers, due to the complexity of
    module support.

    Here, we make those includes explicit, in order to allow a future
    removal of module.h from linux/acpi.h without causing build breakage.

    Cc: Vinod Koul
    Cc: Sanyog Kale
    Cc: Pierre-Louis Bossart
    Signed-off-by: Paul Gortmaker
    Signed-off-by: Vinod Koul

    Paul Gortmaker
     
  • no need to reset return value.

    Detected with cppcheck:
    [drivers/soundwire/stream.c:332]: (style) Variable 'ret' is assigned a
    value that is never used.

    Signed-off-by: Pierre-Louis Bossart
    Reviewed-by: Takashi Iwai
    Signed-off-by: Vinod Koul

    Pierre-Louis Bossart
     
  • No need for explicit initialization of page and ssp fields, they are
    already zeroed with a memset.

    Detected with cppcheck:

    [drivers/soundwire/bus.c:309]: (style) Variable 'msg->page' is
    reassigned a value before the old one has been used.

    Signed-off-by: Pierre-Louis Bossart
    Reviewed-by: Takashi Iwai
    Signed-off-by: Vinod Koul

    Pierre-Louis Bossart
     
  • the number of elements and size are inverted, fix.

    This probably only worked because the number of properties is
    hard-coded to 1.

    Signed-off-by: Pierre-Louis Bossart
    Reviewed-by: Takashi Iwai
    Signed-off-by: Vinod Koul

    Pierre-Louis Bossart
     

12 Nov, 2018

1 commit


27 Aug, 2018

3 commits