2022-01-17 17:12:02

by CGEL

[permalink] [raw]
Subject: [PATCH] sound/soc/samsung: remove unneeded ret variable

From: Minghao Chi <[email protected]>

Return value from io_remap_pfn_range() directly instead
of taking this in another redundant variable.

Reported-by: Zeal Robot <[email protected]>
Signed-off-by: Minghao Chi <[email protected]>
Signed-off-by: CGEL ZTE <[email protected]>
---
sound/soc/samsung/idma.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/sound/soc/samsung/idma.c b/sound/soc/samsung/idma.c
index c3f1b054e238..402ccadad46c 100644
--- a/sound/soc/samsung/idma.c
+++ b/sound/soc/samsung/idma.c
@@ -244,17 +244,14 @@ static int idma_mmap(struct snd_soc_component *component,
{
struct snd_pcm_runtime *runtime = substream->runtime;
unsigned long size, offset;
- int ret;

/* From snd_pcm_lib_mmap_iomem */
vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
size = vma->vm_end - vma->vm_start;
offset = vma->vm_pgoff << PAGE_SHIFT;
- ret = io_remap_pfn_range(vma, vma->vm_start,
+ return io_remap_pfn_range(vma, vma->vm_start,
(runtime->dma_addr + offset) >> PAGE_SHIFT,
size, vma->vm_page_prot);
-
- return ret;
}

static irqreturn_t iis_irq(int irqno, void *dev_id)
--
2.25.1


2022-01-17 17:14:14

by Krzysztof Kozlowski

[permalink] [raw]
Subject: Re: [PATCH] sound/soc/samsung: remove unneeded ret variable

On 17/01/2022 12:03, [email protected] wrote:
> From: Minghao Chi <[email protected]>
>
> Return value from io_remap_pfn_range() directly instead
> of taking this in another redundant variable.
>
> Reported-by: Zeal Robot <[email protected]>

Where is the report? What is being reported here? The tag reported-by is
used to credit bug reporters, mostly public as we work in a public way.
Since there is no bug and there is no public report of anything, the tag
is not applicable.

Please do not add unrelated tags to the patches.

> Signed-off-by: Minghao Chi <[email protected]>
> Signed-off-by: CGEL ZTE <[email protected]>
> ---
> sound/soc/samsung/idma.c | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
>


Best regards,
Krzysztof

2022-01-20 19:16:42

by Mark Brown

[permalink] [raw]
Subject: Re: [PATCH] sound/soc/samsung: remove unneeded ret variable

On Mon, Jan 17, 2022 at 11:03:57AM +0000, [email protected] wrote:
> From: Minghao Chi <[email protected]>
>
> Return value from io_remap_pfn_range() directly instead
> of taking this in another redundant variable.

Please submit patches using subject lines reflecting the style for the
subsystem, this makes it easier for people to identify relevant patches.
Look at what existing commits in the area you're changing are doing and
make sure your subject lines visually resemble what they're doing.
There's no need to resubmit to fix this alone.


Attachments:
(No filename) (564.00 B)
signature.asc (499.00 B)
Download all attachments

2022-01-25 14:50:59

by Mark Brown

[permalink] [raw]
Subject: Re: [PATCH] sound/soc/samsung: remove unneeded ret variable

On Mon, 17 Jan 2022 11:03:57 +0000, [email protected] wrote:
> From: Minghao Chi <[email protected]>
>
> Return value from io_remap_pfn_range() directly instead
> of taking this in another redundant variable.
>
>

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/1] sound/soc/samsung: remove unneeded ret variable
commit: de531908ca4251918f3aff4b21440a8f7b96b0b7

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