projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf92496
)
soundwire: slave: fix scanf format
author
Pierre-Louis Bossart
<pierre-louis.bossart@linux.intel.com>
Tue, 22 Oct 2019 23:31:47 +0000
(18:31 -0500)
committer
Vinod Koul
<vkoul@kernel.org>
Thu, 24 Oct 2019 11:25:45 +0000
(16:55 +0530)
fix cppcheck warning:
[drivers/soundwire/slave.c:145]: (warning) %x in format string (no. 1)
requires 'unsigned int *' but the argument type is 'signed int *'.
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link:
https://lore.kernel.org/r/20191022233147.17268-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/slave.c
patch
|
blob
|
history
diff --git
a/drivers/soundwire/slave.c
b/drivers/soundwire/slave.c
index 48a63ca130d2b2db4ccce74193f76e71c27f571c..6473fa602f82cc81b745f97cca97df1323618939 100644
(file)
--- a/
drivers/soundwire/slave.c
+++ b/
drivers/soundwire/slave.c
@@
-128,7
+128,8
@@
int sdw_of_find_slaves(struct sdw_bus *bus)
struct device_node *node;
for_each_child_of_node(bus->dev->of_node, node) {
- int link_id, sdw_version, ret, len;
+ int link_id, ret, len;
+ unsigned int sdw_version;
const char *compat = NULL;
struct sdw_slave_id id;
const __be32 *addr;