diff options
author | Guneshwor Singh <guneshwor.o.singh@intel.com> | 2017-09-14 08:19:40 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-09-18 09:45:01 -0400 |
commit | a931b9ce93841a5b66b709ba5a244276e345e63b (patch) | |
tree | 0289225a2e60a536c32806d8ee869e9614627ce1 /sound/core | |
parent | fc27fe7e8deef2f37cba3f2be2d52b6ca5eb9d57 (diff) |
ALSA: compress: Remove unused variable
Commit 04c5d5a430fc ("ALSA: compress: Embed struct device") removed
the statement that used 'str' but didn't remove the variable itself.
So remove it.
[Adding stable to Cc since pr_debug() may refer to the uninitialized
buffer -- tiwai]
Fixes: 04c5d5a430fc ("ALSA: compress: Embed struct device")
Signed-off-by: Guneshwor Singh <guneshwor.o.singh@intel.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core')
-rw-r--r-- | sound/core/compress_offload.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/core/compress_offload.c b/sound/core/compress_offload.c index fec1dfdb14ad..4490a699030b 100644 --- a/sound/core/compress_offload.c +++ b/sound/core/compress_offload.c | |||
@@ -948,14 +948,13 @@ static const struct file_operations snd_compr_file_ops = { | |||
948 | static int snd_compress_dev_register(struct snd_device *device) | 948 | static int snd_compress_dev_register(struct snd_device *device) |
949 | { | 949 | { |
950 | int ret = -EINVAL; | 950 | int ret = -EINVAL; |
951 | char str[16]; | ||
952 | struct snd_compr *compr; | 951 | struct snd_compr *compr; |
953 | 952 | ||
954 | if (snd_BUG_ON(!device || !device->device_data)) | 953 | if (snd_BUG_ON(!device || !device->device_data)) |
955 | return -EBADFD; | 954 | return -EBADFD; |
956 | compr = device->device_data; | 955 | compr = device->device_data; |
957 | 956 | ||
958 | pr_debug("reg %s for device %s, direction %d\n", str, compr->name, | 957 | pr_debug("reg device %s, direction %d\n", compr->name, |
959 | compr->direction); | 958 | compr->direction); |
960 | /* register compressed device */ | 959 | /* register compressed device */ |
961 | ret = snd_register_device(SNDRV_DEVICE_TYPE_COMPRESS, | 960 | ret = snd_register_device(SNDRV_DEVICE_TYPE_COMPRESS, |