]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.4.92/alsa-compress-remove-unused-variable.patch
Fixes for 4.19
[thirdparty/kernel/stable-queue.git] / releases / 4.4.92 / alsa-compress-remove-unused-variable.patch
CommitLineData
d745dcc2
GKH
1From a931b9ce93841a5b66b709ba5a244276e345e63b Mon Sep 17 00:00:00 2001
2From: Guneshwor Singh <guneshwor.o.singh@intel.com>
3Date: Thu, 14 Sep 2017 17:49:40 +0530
4Subject: ALSA: compress: Remove unused variable
5
6From: Guneshwor Singh <guneshwor.o.singh@intel.com>
7
8commit a931b9ce93841a5b66b709ba5a244276e345e63b upstream.
9
10Commit 04c5d5a430fc ("ALSA: compress: Embed struct device") removed
11the statement that used 'str' but didn't remove the variable itself.
12So remove it.
13
14[Adding stable to Cc since pr_debug() may refer to the uninitialized
15 buffer -- tiwai]
16
17Fixes: 04c5d5a430fc ("ALSA: compress: Embed struct device")
18Signed-off-by: Guneshwor Singh <guneshwor.o.singh@intel.com>
19Signed-off-by: Takashi Iwai <tiwai@suse.de>
20Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
21
22---
23 sound/core/compress_offload.c | 3 +--
24 1 file changed, 1 insertion(+), 2 deletions(-)
25
26--- a/sound/core/compress_offload.c
27+++ b/sound/core/compress_offload.c
28@@ -872,14 +872,13 @@ static const struct file_operations snd_
29 static int snd_compress_dev_register(struct snd_device *device)
30 {
31 int ret = -EINVAL;
32- char str[16];
33 struct snd_compr *compr;
34
35 if (snd_BUG_ON(!device || !device->device_data))
36 return -EBADFD;
37 compr = device->device_data;
38
39- pr_debug("reg %s for device %s, direction %d\n", str, compr->name,
40+ pr_debug("reg device %s, direction %d\n", compr->name,
41 compr->direction);
42 /* register compressed device */
43 ret = snd_register_device(SNDRV_DEVICE_TYPE_COMPRESS,