Skip to content

Conversation

@plbossart
Copy link
Member

Before we start, let's clean this up.

@xiulipan can you please add soundwire-defconfig to the SOF and SST options for the kernel CI? Thanks!

Visual inspections confirmed by checkpatch.pl --strict expose a number
of style issues, specifically parameter alignment is inconsistent as
if different contributors used different styles. Before we restart
support for SoundWire with Sound Open Firmware on Intel platforms,
let's clean all this.

Fix Kconfig help, spelling, SPDX format, alignment, spurious
parentheses, bool comparisons to true/false.

No new functionality added.

Signed-off-by: Pierre-Louis Bossart <[email protected]>
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 <[email protected]>
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 <[email protected]>
@plbossart plbossart requested review from bardliao, lyakh and ranj063 April 4, 2019 01:20
Copy link
Collaborator

@bardliao bardliao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @plbossart It looks good to me.

@plbossart
Copy link
Member Author

will submit upstream first, additional changes needed

@plbossart plbossart closed this Apr 4, 2019
@xiulipan
Copy link

xiulipan commented Apr 8, 2019

@plbossart
Will check that and try to add in sof-ci first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants