projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ALSA: Use kzalloc for allocating only one thing
[firefly-linux-kernel-4.4.55.git]
/
sound
/
isa
/
msnd
/
msnd_midi.c
diff --git
a/sound/isa/msnd/msnd_midi.c
b/sound/isa/msnd/msnd_midi.c
index cb9aa4c4edd08ad895f1be5b688aa93bee6dedab..4be562b2cf219bd12402ddb7778fd50f4f684abe 100644
(file)
--- a/
sound/isa/msnd/msnd_midi.c
+++ b/
sound/isa/msnd/msnd_midi.c
@@
-162,7
+162,7
@@
int snd_msndmidi_new(struct snd_card *card, int device)
err = snd_rawmidi_new(card, "MSND-MIDI", device, 1, 1, &rmidi);
if (err < 0)
return err;
- mpu = k
calloc(1,
sizeof(*mpu), GFP_KERNEL);
+ mpu = k
zalloc(
sizeof(*mpu), GFP_KERNEL);
if (mpu == NULL) {
snd_device_free(card, rmidi);
return -ENOMEM;