ALSA: pcm: Fix trailing semicolon
diff mbox

Message ID 20180115181857.32105-1-luisbg@kernel.org
State New
Headers show

Commit Message

Luis de Bethencourt Jan. 15, 2018, 6:18 p.m. UTC
From: Ubuntu <luisbg@kernel.org>

The trailing semicolon is an empty statement that does no operation.
Removing it since it doesn't do anything.

Signed-off-by: Luis de Bethencourt <luisbg@kernel.org>
---


Hi,

After fixing the same thing in drivers/staging/rtl8723bs/, Joe Perches
suggested I fix it treewide [0].

Best regards 
Luis


[0] http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2018-January/115410.html
[1] http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2018-January/115390.html

 sound/core/pcm_native.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Takashi Iwai Jan. 15, 2018, 7:18 p.m. UTC | #1
On Mon, 15 Jan 2018 19:18:57 +0100,
Luis de Bethencourt wrote:
> 
> From: Ubuntu <luisbg@kernel.org>

Is this from address intentional?  It'd be taken as is via git-am.


thanks,

Takashi

> The trailing semicolon is an empty statement that does no operation.
> Removing it since it doesn't do anything.
> 
> Signed-off-by: Luis de Bethencourt <luisbg@kernel.org>
> ---
> 
> 
> Hi,
> 
> After fixing the same thing in drivers/staging/rtl8723bs/, Joe Perches
> suggested I fix it treewide [0].
> 
> Best regards 
> Luis
> 
> 
> [0] http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2018-January/115410.html
> [1] http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2018-January/115390.html
> 
>  sound/core/pcm_native.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c
> index 3f13e8da0812..51104df924e1 100644
> --- a/sound/core/pcm_native.c
> +++ b/sound/core/pcm_native.c
> @@ -3446,7 +3446,7 @@ EXPORT_SYMBOL_GPL(snd_pcm_lib_default_mmap);
>  int snd_pcm_lib_mmap_iomem(struct snd_pcm_substream *substream,
>  			   struct vm_area_struct *area)
>  {
> -	struct snd_pcm_runtime *runtime = substream->runtime;;
> +	struct snd_pcm_runtime *runtime = substream->runtime;
>  
>  	area->vm_page_prot = pgprot_noncached(area->vm_page_prot);
>  	return vm_iomap_memory(area, runtime->dma_addr, runtime->dma_bytes);
> -- 
> 2.15.1
> 
>
Luis de Bethencourt Jan. 16, 2018, 1:28 p.m. UTC | #2
On 01/15/2018 07:18 PM, Takashi Iwai wrote:
> On Mon, 15 Jan 2018 19:18:57 +0100,
> Luis de Bethencourt wrote:
>>
>> From: Ubuntu <luisbg@kernel.org>
> 
> Is this from address intentional?  It'd be taken as is via git-am.
> 
> 
> thanks,
> 
> Takashi
> 
>> The trailing semicolon is an empty statement that does no operation.
>> Removing it since it doesn't do anything.
>>
>> Signed-off-by: Luis de Bethencourt <luisbg@kernel.org>
>> ---
>>
>>
>> Hi,
>>
>> After fixing the same thing in drivers/staging/rtl8723bs/, Joe Perches
>> suggested I fix it treewide [0].
>>
>> Best regards 
>> Luis
>>
>>
>> [0] http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2018-January/115410.html
>> [1] http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2018-January/115390.html
>>
>>  sound/core/pcm_native.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c
>> index 3f13e8da0812..51104df924e1 100644
>> --- a/sound/core/pcm_native.c
>> +++ b/sound/core/pcm_native.c
>> @@ -3446,7 +3446,7 @@ EXPORT_SYMBOL_GPL(snd_pcm_lib_default_mmap);
>>  int snd_pcm_lib_mmap_iomem(struct snd_pcm_substream *substream,
>>  			   struct vm_area_struct *area)
>>  {
>> -	struct snd_pcm_runtime *runtime = substream->runtime;;
>> +	struct snd_pcm_runtime *runtime = substream->runtime;
>>  
>>  	area->vm_page_prot = pgprot_noncached(area->vm_page_prot);
>>  	return vm_iomap_memory(area, runtime->dma_addr, runtime->dma_bytes);
>> -- 
>> 2.15.1
>>
>>

Hi Takashi,

Sorry. Not sure how git send-email added that line to the commit message.
I have sent a v2 correcting it.

Thanks,
Luis

Patch
diff mbox

diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c
index 3f13e8da0812..51104df924e1 100644
--- a/sound/core/pcm_native.c
+++ b/sound/core/pcm_native.c
@@ -3446,7 +3446,7 @@  EXPORT_SYMBOL_GPL(snd_pcm_lib_default_mmap);
 int snd_pcm_lib_mmap_iomem(struct snd_pcm_substream *substream,
 			   struct vm_area_struct *area)
 {
-	struct snd_pcm_runtime *runtime = substream->runtime;;
+	struct snd_pcm_runtime *runtime = substream->runtime;
 
 	area->vm_page_prot = pgprot_noncached(area->vm_page_prot);
 	return vm_iomap_memory(area, runtime->dma_addr, runtime->dma_bytes);