diff options
author | Robert P. J. Day <rpjday@mindspring.com> | 2007-02-14 03:33:16 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-14 11:09:54 -0500 |
commit | 3159f06dc2303630c02d1ad2eeaeaf341414c9df (patch) | |
tree | 678779f605dac635df3932381933b3950a0052ba /sound/oss/waveartist.c | |
parent | cd354f1ae75e6466a7e31b727faede57a1f89ca5 (diff) |
[PATCH] OSS: replace kmalloc()+memset() combos with kzalloc()
Replace kmalloc() + memset() pairs with the appropriate kzalloc() calls.
Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'sound/oss/waveartist.c')
-rw-r--r-- | sound/oss/waveartist.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/oss/waveartist.c b/sound/oss/waveartist.c index 26a7c6af95bc..b48c72923a13 100644 --- a/sound/oss/waveartist.c +++ b/sound/oss/waveartist.c | |||
@@ -1267,12 +1267,10 @@ static int __init waveartist_init(wavnc_info *devc) | |||
1267 | conf_printf2(dev_name, devc->hw.io_base, devc->hw.irq, | 1267 | conf_printf2(dev_name, devc->hw.io_base, devc->hw.irq, |
1268 | devc->hw.dma, devc->hw.dma2); | 1268 | devc->hw.dma, devc->hw.dma2); |
1269 | 1269 | ||
1270 | portc = kmalloc(sizeof(wavnc_port_info), GFP_KERNEL); | 1270 | portc = kzalloc(sizeof(wavnc_port_info), GFP_KERNEL); |
1271 | if (portc == NULL) | 1271 | if (portc == NULL) |
1272 | goto nomem; | 1272 | goto nomem; |
1273 | 1273 | ||
1274 | memset(portc, 0, sizeof(wavnc_port_info)); | ||
1275 | |||
1276 | my_dev = sound_install_audiodrv(AUDIO_DRIVER_VERSION, dev_name, | 1274 | my_dev = sound_install_audiodrv(AUDIO_DRIVER_VERSION, dev_name, |
1277 | &waveartist_audio_driver, sizeof(struct audio_driver), | 1275 | &waveartist_audio_driver, sizeof(struct audio_driver), |
1278 | devc->audio_flags, AFMT_U8 | AFMT_S16_LE | AFMT_S8, | 1276 | devc->audio_flags, AFMT_U8 | AFMT_S16_LE | AFMT_S8, |