Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1328814 > unrolled thread

[PATCH] ALSA: firewire-digi00x: Drop bogus const type qualifier on dot_scrt()

Started byGeert Uytterhoeven <geert@linux-m68k.org>
First post2016-02-08 09:10 +0100
Last post2016-02-08 12:30 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] ALSA: firewire-digi00x: Drop bogus const type qualifier on dot_scrt() Geert Uytterhoeven <geert@linux-m68k.org> - 2016-02-08 09:10 +0100
    Re: [PATCH] ALSA: firewire-digi00x: Drop bogus const type qualifier  on dot_scrt() Takashi Sakamoto <o-takashi@sakamocchi.jp> - 2016-02-08 12:30 +0100

#1328814 — [PATCH] ALSA: firewire-digi00x: Drop bogus const type qualifier on dot_scrt()

FromGeert Uytterhoeven <geert@linux-m68k.org>
Date2016-02-08 09:10 +0100
Subject[PATCH] ALSA: firewire-digi00x: Drop bogus const type qualifier on dot_scrt()
Message-ID<qZP3s-2tP-1@gated-at.bofh.it>
sound/firewire/digi00x/amdtp-dot.c:67: warning: type qualifiers ignored on function return type

Drop the bogus "const" type qualifier on the return type of dot_scrt()
to fix this.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 sound/firewire/digi00x/amdtp-dot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/firewire/digi00x/amdtp-dot.c b/sound/firewire/digi00x/amdtp-dot.c
index b02a5e8cad448c40..0ac92aba5bc1c9a4 100644
--- a/sound/firewire/digi00x/amdtp-dot.c
+++ b/sound/firewire/digi00x/amdtp-dot.c
@@ -63,7 +63,7 @@ struct amdtp_dot {
 #define BYTE_PER_SAMPLE (4)
 #define MAGIC_DOT_BYTE (2)
 #define MAGIC_BYTE_OFF(x) (((x) * BYTE_PER_SAMPLE) + MAGIC_DOT_BYTE)
-static const u8 dot_scrt(const u8 idx, const unsigned int off)
+static u8 dot_scrt(const u8 idx, const unsigned int off)
 {
 	/*
 	 * the length of the added pattern only depends on the lower nibble
-- 
1.9.1

[toc] | [next] | [standalone]


#1328941 — Re: [PATCH] ALSA: firewire-digi00x: Drop bogus const type qualifier on dot_scrt()

FromTakashi Sakamoto <o-takashi@sakamocchi.jp>
Date2016-02-08 12:30 +0100
SubjectRe: [PATCH] ALSA: firewire-digi00x: Drop bogus const type qualifier on dot_scrt()
Message-ID<qZSb0-4xg-21@gated-at.bofh.it>
In reply to#1328814
On Feb 7 2016 23:14, Geert Uytterhoeven wrote:
> sound/firewire/digi00x/amdtp-dot.c:67: warning: type qualifiers ignored on function return type
> 
> Drop the bogus "const" type qualifier on the return type of dot_scrt()
> to fix this.
> 
> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>

Yep. It came from original code[1] and I overlooked.

Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>

> ---
>  sound/firewire/digi00x/amdtp-dot.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/sound/firewire/digi00x/amdtp-dot.c b/sound/firewire/digi00x/amdtp-dot.c
> index b02a5e8cad448c40..0ac92aba5bc1c9a4 100644
> --- a/sound/firewire/digi00x/amdtp-dot.c
> +++ b/sound/firewire/digi00x/amdtp-dot.c
> @@ -63,7 +63,7 @@ struct amdtp_dot {
>  #define BYTE_PER_SAMPLE (4)
>  #define MAGIC_DOT_BYTE (2)
>  #define MAGIC_BYTE_OFF(x) (((x) * BYTE_PER_SAMPLE) + MAGIC_DOT_BYTE)
> -static const u8 dot_scrt(const u8 idx, const unsigned int off)
> +static u8 dot_scrt(const u8 idx, const unsigned int off)
>  {
>  	/*
>  	 * the length of the added pattern only depends on the lower nibble

Thanks

[1] https://github.com/x42/003amdtp


Takashi Sakamoto

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web