]>
Commit | Line | Data |
---|---|---|
d745dcc2 GKH |
1 | From a931b9ce93841a5b66b709ba5a244276e345e63b Mon Sep 17 00:00:00 2001 |
2 | From: Guneshwor Singh <guneshwor.o.singh@intel.com> | |
3 | Date: Thu, 14 Sep 2017 17:49:40 +0530 | |
4 | Subject: ALSA: compress: Remove unused variable | |
5 | ||
6 | From: Guneshwor Singh <guneshwor.o.singh@intel.com> | |
7 | ||
8 | commit a931b9ce93841a5b66b709ba5a244276e345e63b upstream. | |
9 | ||
10 | Commit 04c5d5a430fc ("ALSA: compress: Embed struct device") removed | |
11 | the statement that used 'str' but didn't remove the variable itself. | |
12 | So remove it. | |
13 | ||
14 | [Adding stable to Cc since pr_debug() may refer to the uninitialized | |
15 | buffer -- tiwai] | |
16 | ||
17 | Fixes: 04c5d5a430fc ("ALSA: compress: Embed struct device") | |
18 | Signed-off-by: Guneshwor Singh <guneshwor.o.singh@intel.com> | |
19 | Signed-off-by: Takashi Iwai <tiwai@suse.de> | |
20 | Signed-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, |