diff options
Diffstat (limited to 'sound/usb/usbmidi.c')
-rw-r--r-- | sound/usb/usbmidi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/usb/usbmidi.c b/sound/usb/usbmidi.c index 93dedde3c428..e0d0365453b3 100644 --- a/sound/usb/usbmidi.c +++ b/sound/usb/usbmidi.c | |||
@@ -841,7 +841,7 @@ static int snd_usbmidi_in_endpoint_create(snd_usb_midi_t* umidi, | |||
841 | int length; | 841 | int length; |
842 | 842 | ||
843 | rep->in = NULL; | 843 | rep->in = NULL; |
844 | ep = kcalloc(1, sizeof(*ep), GFP_KERNEL); | 844 | ep = kzalloc(sizeof(*ep), GFP_KERNEL); |
845 | if (!ep) | 845 | if (!ep) |
846 | return -ENOMEM; | 846 | return -ENOMEM; |
847 | ep->umidi = umidi; | 847 | ep->umidi = umidi; |
@@ -913,7 +913,7 @@ static int snd_usbmidi_out_endpoint_create(snd_usb_midi_t* umidi, | |||
913 | void* buffer; | 913 | void* buffer; |
914 | 914 | ||
915 | rep->out = NULL; | 915 | rep->out = NULL; |
916 | ep = kcalloc(1, sizeof(*ep), GFP_KERNEL); | 916 | ep = kzalloc(sizeof(*ep), GFP_KERNEL); |
917 | if (!ep) | 917 | if (!ep) |
918 | return -ENOMEM; | 918 | return -ENOMEM; |
919 | ep->umidi = umidi; | 919 | ep->umidi = umidi; |
@@ -1537,7 +1537,7 @@ int snd_usb_create_midi_interface(snd_usb_audio_t* chip, | |||
1537 | int out_ports, in_ports; | 1537 | int out_ports, in_ports; |
1538 | int i, err; | 1538 | int i, err; |
1539 | 1539 | ||
1540 | umidi = kcalloc(1, sizeof(*umidi), GFP_KERNEL); | 1540 | umidi = kzalloc(sizeof(*umidi), GFP_KERNEL); |
1541 | if (!umidi) | 1541 | if (!umidi) |
1542 | return -ENOMEM; | 1542 | return -ENOMEM; |
1543 | umidi->chip = chip; | 1543 | umidi->chip = chip; |