aboutsummaryrefslogtreecommitdiff
path: root/sound/core/seq/seq_midi_event.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/core/seq/seq_midi_event.c')
-rw-r--r--sound/core/seq/seq_midi_event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/seq/seq_midi_event.c b/sound/core/seq/seq_midi_event.c
index 603b63716db..2dc1aecfb42 100644
--- a/sound/core/seq/seq_midi_event.c
+++ b/sound/core/seq/seq_midi_event.c
@@ -118,7 +118,7 @@ int snd_midi_event_new(int bufsize, snd_midi_event_t **rdev)
snd_midi_event_t *dev;
*rdev = NULL;
- dev = kcalloc(1, sizeof(*dev), GFP_KERNEL);
+ dev = kzalloc(sizeof(*dev), GFP_KERNEL);
if (dev == NULL)
return -ENOMEM;
if (bufsize > 0) {