ALSA: compress: Remove unused variable
Subsystems (2)
PATCH 1/1 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.
Signed-off-by Guneshwor Singh <[email protected]>
--- sound/core/compress_offload.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
sound/core/compress_offload.c +1 -2
@@ -948,14 +948,13 @@ static const struct file_operations snd_compr_file_ops = {static int snd_compress_dev_register (struct snd_device *device) {int ret = -EINVAL ; -char str[16 ];struct snd_compr *compr;if (snd_BUG_ON (!device || !device->device_data))return -EBADFD ; compr = device->device_data; -pr_debug ("reg %s for device %s, direction %d\n" , str, compr->name, +pr_debug ("reg device %s, direction %d\n" , compr->name, compr->direction);/* register compressed device */ ret = snd_register_device(SNDRV_DEVICE_TYPE_COMPRESS,
Signature · 1 line
2.14.1
Takashi Iwai
AppliedQuoted 6 lines · Guneshwor Singh
Commit
04c5d5a430fc("ALSA: compress: Embed struct device") removed the statement that used 'str' but didn't remove the variable itself. So remove it.Signed-off-by Guneshwor Singh <[email protected]>
Applied, thanks.
Takashi