fix format type mismatch in sound/pci/lola/lola_proc.c
diff mbox

Message ID 1400606537-22073-1-git-send-email-toralf.foerster@gmx.de
State Accepted
Commit 2d3a27782259de867fd2c0b7e3428acaf2b00123
Delegated to: Takashi Iwai
Headers show

Commit Message

Toralf Förster May 20, 2014, 5:22 p.m. UTC
Signed-off-by: Toralf Förster <toralf.foerster@gmx.de>
---
 sound/pci/lola/lola_proc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Takashi Iwai May 21, 2014, 9:12 a.m. UTC | #1
At Tue, 20 May 2014 19:22:17 +0200,
Toralf Förster wrote:
> 
> Signed-off-by: Toralf Förster <toralf.foerster@gmx.de>

Thanks, applied.


Takashi

> ---
>  sound/pci/lola/lola_proc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/sound/pci/lola/lola_proc.c b/sound/pci/lola/lola_proc.c
> index 04df83d..c241dc0 100644
> --- a/sound/pci/lola/lola_proc.c
> +++ b/sound/pci/lola/lola_proc.c
> @@ -151,7 +151,7 @@ static void lola_proc_codec_rw_write(struct snd_info_entry *entry,
>  	char line[64];
>  	unsigned int id, verb, data, extdata;
>  	while (!snd_info_get_line(buffer, line, sizeof(line))) {
> -		if (sscanf(line, "%i %i %i %i", &id, &verb, &data, &extdata) != 4)
> +		if (sscanf(line, "%u %u %u %u", &id, &verb, &data, &extdata) != 4)
>  			continue;
>  		lola_codec_read(chip, id, verb, data, extdata,
>  				&chip->debug_res,
> -- 
> 1.9.3
>

Patch
diff mbox

diff --git a/sound/pci/lola/lola_proc.c b/sound/pci/lola/lola_proc.c
index 04df83d..c241dc0 100644
--- a/sound/pci/lola/lola_proc.c
+++ b/sound/pci/lola/lola_proc.c
@@ -151,7 +151,7 @@  static void lola_proc_codec_rw_write(struct snd_info_entry *entry,
 	char line[64];
 	unsigned int id, verb, data, extdata;
 	while (!snd_info_get_line(buffer, line, sizeof(line))) {
-		if (sscanf(line, "%i %i %i %i", &id, &verb, &data, &extdata) != 4)
+		if (sscanf(line, "%u %u %u %u", &id, &verb, &data, &extdata) != 4)
 			continue;
 		lola_codec_read(chip, id, verb, data, extdata,
 				&chip->debug_res,