diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-09-09 08:22:34 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2005-09-12 04:48:22 -0400 |
commit | 561b220a4dece18d67177413e6fa21b49aa4acce (patch) | |
tree | 57318610d0b3f97c6193860d7f76dfdb7f743d12 /sound/usb/usbmidi.c | |
parent | e560d8d8368ad8b6161839984b253de622863265 (diff) |
[ALSA] Replace with kzalloc() - others
Documentation,SA11xx UDA1341 driver,Generic drivers,MPU401 UART,OPL3
OPL4,Digigram VX core,I2C cs8427,I2C lib core,I2C tea6330t,L3 drivers
AK4114 receiver,AK4117 receiver,PDAudioCF driver,PPC PMAC driver
SPARC AMD7930 driver,SPARC cs4231 driver,Synth,Common EMU synth
USB generic driver,USB USX2Y
Replace kcalloc(1,..) with kzalloc().
Signed-off-by: Takashi Iwai <tiwai@suse.de>
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; |