Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 711ee39b authored by Henrik Kretzschmar's avatar Henrik Kretzschmar Committed by Jaroslav Kysela
Browse files

[ALSA] pcxhr - Fix a compiler warning on 64bit architectures



The patch fixes a conpile warning on 64bit architectures, caused by
different sizes of size_t . Since size_t is unsigned I permited
myself to cange the format, too.

Signed-off-by: default avatarHenrik Kretzschmar <henne@nachtwindheim.de>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent c6cc0e3b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -385,8 +385,8 @@ static int pcxhr_hwdep_dsp_load(struct snd_hwdep *hw,
	fw.size = dsp->length;
	fw.data = vmalloc(fw.size);
	if (! fw.data) {
		snd_printk(KERN_ERR "pcxhr: cannot allocate dsp image (%d bytes)\n",
			   fw.size);
		snd_printk(KERN_ERR "pcxhr: cannot allocate dsp image (%lu bytes)\n",
			   (unsigned long)fw.size);
		return -ENOMEM;
	}
	if (copy_from_user(fw.data, dsp->image, dsp->length)) {