diff options
| author | Pierre-Louis Bossart <[email protected]> | 2021-05-11 10:50:35 +0800 |
|---|---|---|
| committer | Vinod Koul <[email protected]> | 2021-05-11 17:50:33 +0530 |
| commit | 037219925e7a802c1d038af18cec3d0a8c88a368 (patch) | |
| tree | 65e143becaeb732388a92f2ca6473de97189cff0 /tools/perf/scripts/python | |
| parent | 36eee232df7b41dce5a26e4da2d083f6a6b0f476 (diff) | |
soundwire: dmi-quirks: remove duplicate initialization
cppcheck warning:
drivers/soundwire/dmi-quirks.c:85:12: style: Redundant initialization
for 'map'. The initialized value is overwritten before it is
read. [redundantInitialization]
for (map = dmi_id->driver_data; map->adr; map++) {
^
drivers/soundwire/dmi-quirks.c:83:25: note: map is initialized
struct adr_remap *map = dmi_id->driver_data;
^
drivers/soundwire/dmi-quirks.c:85:12: note: map is overwritten
for (map = dmi_id->driver_data; map->adr; map++) {
^
Signed-off-by: Pierre-Louis Bossart <[email protected]>
Reviewed-by: Daniel Baluta <[email protected]>
Reviewed-by: Guennadi Liakhovetski <[email protected]>
Signed-off-by: Bard Liao <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions