projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebe2aa9
)
ALSA: es1688: Use strcpy() instead of sprintf()
author
Nicolas Iooss
<nicolas.iooss_linux@m4x.org>
Mon, 13 Mar 2017 19:22:50 +0000
(20:22 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Mon, 20 Mar 2017 11:24:34 +0000
(12:24 +0100)
There is no point in using sprintf() without a format string when
strcpy() can perform the same operation.
Signed-off-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/isa/es1688/es1688_lib.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/isa/es1688/es1688_lib.c
b/sound/isa/es1688/es1688_lib.c
index e2cf508841b1ef2890eb2f253ec6acddc5be91b8..81cf26fa28d60427d4280b0ba43e3a6576ac7fa1 100644
(file)
--- a/
sound/isa/es1688/es1688_lib.c
+++ b/
sound/isa/es1688/es1688_lib.c
@@
-742,7
+742,7
@@
int snd_es1688_pcm(struct snd_card *card, struct snd_es1688 *chip, int device)
pcm->private_data = chip;
pcm->info_flags = SNDRV_PCM_INFO_HALF_DUPLEX;
- s
printf
(pcm->name, snd_es1688_chip_id(chip));
+ s
trcpy
(pcm->name, snd_es1688_chip_id(chip));
chip->pcm = pcm;
snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV,