diff options
Diffstat (limited to 'sound/isa/gus/gus_mem_proc.c')
-rw-r--r-- | sound/isa/gus/gus_mem_proc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/isa/gus/gus_mem_proc.c b/sound/isa/gus/gus_mem_proc.c index 886763f12132..7f96ac237f3c 100644 --- a/sound/isa/gus/gus_mem_proc.c +++ b/sound/isa/gus/gus_mem_proc.c | |||
@@ -98,7 +98,7 @@ int snd_gf1_mem_proc_init(snd_gus_card_t * gus) | |||
98 | 98 | ||
99 | for (idx = 0; idx < 4; idx++) { | 99 | for (idx = 0; idx < 4; idx++) { |
100 | if (gus->gf1.mem_alloc.banks_8[idx].size > 0) { | 100 | if (gus->gf1.mem_alloc.banks_8[idx].size > 0) { |
101 | priv = kcalloc(1, sizeof(*priv), GFP_KERNEL); | 101 | priv = kzalloc(sizeof(*priv), GFP_KERNEL); |
102 | if (priv == NULL) | 102 | if (priv == NULL) |
103 | return -ENOMEM; | 103 | return -ENOMEM; |
104 | priv->gus = gus; | 104 | priv->gus = gus; |
@@ -115,7 +115,7 @@ int snd_gf1_mem_proc_init(snd_gus_card_t * gus) | |||
115 | } | 115 | } |
116 | for (idx = 0; idx < 4; idx++) { | 116 | for (idx = 0; idx < 4; idx++) { |
117 | if (gus->gf1.rom_present & (1 << idx)) { | 117 | if (gus->gf1.rom_present & (1 << idx)) { |
118 | priv = kcalloc(1, sizeof(*priv), GFP_KERNEL); | 118 | priv = kzalloc(sizeof(*priv), GFP_KERNEL); |
119 | if (priv == NULL) | 119 | if (priv == NULL) |
120 | return -ENOMEM; | 120 | return -ENOMEM; |
121 | priv->rom = 1; | 121 | priv->rom = 1; |