Skip to content

Commit a931b9c

Browse files
gune42tiwai
authored andcommitted
ALSA: compress: Remove unused variable
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 <[email protected]> Cc: <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
1 parent fc27fe7 commit a931b9c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sound/core/compress_offload.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -948,14 +948,13 @@ static const struct file_operations snd_compr_file_ops = {
948948
static int snd_compress_dev_register(struct snd_device *device)
949949
{
950950
int ret = -EINVAL;
951-
char str[16];
952951
struct snd_compr *compr;
953952

954953
if (snd_BUG_ON(!device || !device->device_data))
955954
return -EBADFD;
956955
compr = device->device_data;
957956

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,
959958
compr->direction);
960959
/* register compressed device */
961960
ret = snd_register_device(SNDRV_DEVICE_TYPE_COMPRESS,

0 commit comments

Comments
 (0)