Skip to content

Commit 8cff155

Browse files
gune42gregkh
authored andcommitted
ALSA: compress: Remove unused variable
commit a931b9ce93841a5b66b709ba5a244276e345e63b upstream. Commit 04c5d5a ("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: 04c5d5a ("ALSA: compress: Embed struct device") Signed-off-by: Guneshwor Singh <guneshwor.o.singh@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent dd1f96a commit 8cff155

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

sound/core/compress_offload.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -872,14 +872,13 @@ static const struct file_operations snd_compr_file_ops = {
872872
static int snd_compress_dev_register(struct snd_device *device)
873873
{
874874
int ret = -EINVAL;
875-
char str[16];
876875
struct snd_compr *compr;
877876

878877
if (snd_BUG_ON(!device || !device->device_data))
879878
return -EBADFD;
880879
compr = device->device_data;
881880

882-
pr_debug("reg %s for device %s, direction %d\n", str, compr->name,
881+
pr_debug("reg device %s, direction %d\n", compr->name,
883882
compr->direction);
884883
/* register compressed device */
885884
ret = snd_register_device(SNDRV_DEVICE_TYPE_COMPRESS,

0 commit comments

Comments
 (0)