* [PATCH] firmware: cs_dsp: Delete redundant assignments in cs_dsp_test_bin.c
@ 2024-12-19 15:57 Richard Fitzgerald
2024-12-19 18:54 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Richard Fitzgerald @ 2024-12-19 15:57 UTC (permalink / raw)
To: broonie
Cc: linux-kernel, linux-sound, patches, Richard Fitzgerald,
Dheeraj Reddy Jonnalagadda
Delete two redundant assignments in cs_dsp_test_bin.c.
Unfortunately none of W=1 or the static analysis tools I ran
flagged these.
Fixes: dd0b6b1f29b9 ("firmware: cs_dsp: Add KUnit testing of bin file download")
Reported-by: Dheeraj Reddy Jonnalagadda <dheeraj.linuxdev@gmail.com>
Closes: https://scan7.scan.coverity.com/#/project-view/52337/11354?selectedIssue=1602511
Closes: https://scan7.scan.coverity.com/#/project-view/52337/11354?selectedIssue=1602490
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
---
drivers/firmware/cirrus/test/cs_dsp_test_bin.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/drivers/firmware/cirrus/test/cs_dsp_test_bin.c b/drivers/firmware/cirrus/test/cs_dsp_test_bin.c
index bbff6caee285..1e161bbc5b4a 100644
--- a/drivers/firmware/cirrus/test/cs_dsp_test_bin.c
+++ b/drivers/firmware/cirrus/test/cs_dsp_test_bin.c
@@ -500,9 +500,6 @@ static void bin_patch_one_word_multiple_algs(struct kunit *test)
/* Add one payload per algorithm */
for (i = 0; i < ARRAY_SIZE(bin_test_mock_algs); ++i) {
- alg_base_words = cs_dsp_mock_xm_header_get_alg_base_in_words(priv,
- bin_test_mock_algs[i].id,
- param->mem_type);
reg_inc_per_word = cs_dsp_mock_reg_addr_inc_per_unpacked_word(priv);
cs_dsp_mock_bin_add_patch(priv->local->bin_builder,
@@ -566,9 +563,6 @@ static void bin_patch_one_word_multiple_algs_unordered(struct kunit *test)
/* Add one payload per algorithm */
for (i = 0; i < ARRAY_SIZE(bin_test_mock_algs); ++i) {
alg_idx = alg_order[i];
- alg_base_words = cs_dsp_mock_xm_header_get_alg_base_in_words(priv,
- bin_test_mock_algs[alg_idx].id,
- param->mem_type);
reg_inc_per_word = cs_dsp_mock_reg_addr_inc_per_unpacked_word(priv);
cs_dsp_mock_bin_add_patch(priv->local->bin_builder,
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] firmware: cs_dsp: Delete redundant assignments in cs_dsp_test_bin.c
2024-12-19 15:57 [PATCH] firmware: cs_dsp: Delete redundant assignments in cs_dsp_test_bin.c Richard Fitzgerald
@ 2024-12-19 18:54 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2024-12-19 18:54 UTC (permalink / raw)
To: Richard Fitzgerald
Cc: linux-kernel, linux-sound, patches, Dheeraj Reddy Jonnalagadda
On Thu, 19 Dec 2024 15:57:19 +0000, Richard Fitzgerald wrote:
> Delete two redundant assignments in cs_dsp_test_bin.c.
>
> Unfortunately none of W=1 or the static analysis tools I ran
> flagged these.
>
>
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] firmware: cs_dsp: Delete redundant assignments in cs_dsp_test_bin.c
commit: ee37bc7e0144e312a8e990acdd4f49e4afa71f1c
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-12-19 18:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-19 15:57 [PATCH] firmware: cs_dsp: Delete redundant assignments in cs_dsp_test_bin.c Richard Fitzgerald
2024-12-19 18:54 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox