@@ -53,7 +53,7 @@ static int snd_mixer_oss_open(struct inode *inode, struct file *file)
5353 err = snd_card_file_add (card , file );
5454 if (err < 0 )
5555 return err ;
56- fmixer = kcalloc ( 1 , sizeof (* fmixer ), GFP_KERNEL );
56+ fmixer = kzalloc ( sizeof (* fmixer ), GFP_KERNEL );
5757 if (fmixer == NULL ) {
5858 snd_card_file_remove (card , file );
5959 return - ENOMEM ;
@@ -517,8 +517,8 @@ static void snd_mixer_oss_get_volume1_vol(snd_mixer_oss_file_t *fmixer,
517517 up_read (& card -> controls_rwsem );
518518 return ;
519519 }
520- uinfo = kcalloc ( 1 , sizeof (* uinfo ), GFP_KERNEL );
521- uctl = kcalloc ( 1 , sizeof (* uctl ), GFP_KERNEL );
520+ uinfo = kzalloc ( sizeof (* uinfo ), GFP_KERNEL );
521+ uctl = kzalloc ( sizeof (* uctl ), GFP_KERNEL );
522522 if (uinfo == NULL || uctl == NULL )
523523 goto __unalloc ;
524524 snd_runtime_check (!kctl -> info (kctl , uinfo ), goto __unalloc );
@@ -551,8 +551,8 @@ static void snd_mixer_oss_get_volume1_sw(snd_mixer_oss_file_t *fmixer,
551551 up_read (& card -> controls_rwsem );
552552 return ;
553553 }
554- uinfo = kcalloc ( 1 , sizeof (* uinfo ), GFP_KERNEL );
555- uctl = kcalloc ( 1 , sizeof (* uctl ), GFP_KERNEL );
554+ uinfo = kzalloc ( sizeof (* uinfo ), GFP_KERNEL );
555+ uctl = kzalloc ( sizeof (* uctl ), GFP_KERNEL );
556556 if (uinfo == NULL || uctl == NULL )
557557 goto __unalloc ;
558558 snd_runtime_check (!kctl -> info (kctl , uinfo ), goto __unalloc );
@@ -612,8 +612,8 @@ static void snd_mixer_oss_put_volume1_vol(snd_mixer_oss_file_t *fmixer,
612612 down_read (& card -> controls_rwsem );
613613 if ((kctl = snd_ctl_find_numid (card , numid )) == NULL )
614614 return ;
615- uinfo = kcalloc ( 1 , sizeof (* uinfo ), GFP_KERNEL );
616- uctl = kcalloc ( 1 , sizeof (* uctl ), GFP_KERNEL );
615+ uinfo = kzalloc ( sizeof (* uinfo ), GFP_KERNEL );
616+ uctl = kzalloc ( sizeof (* uctl ), GFP_KERNEL );
617617 if (uinfo == NULL || uctl == NULL )
618618 goto __unalloc ;
619619 snd_runtime_check (!kctl -> info (kctl , uinfo ), goto __unalloc );
@@ -649,8 +649,8 @@ static void snd_mixer_oss_put_volume1_sw(snd_mixer_oss_file_t *fmixer,
649649 up_read (& fmixer -> card -> controls_rwsem );
650650 return ;
651651 }
652- uinfo = kcalloc ( 1 , sizeof (* uinfo ), GFP_KERNEL );
653- uctl = kcalloc ( 1 , sizeof (* uctl ), GFP_KERNEL );
652+ uinfo = kzalloc ( sizeof (* uinfo ), GFP_KERNEL );
653+ uctl = kzalloc ( sizeof (* uctl ), GFP_KERNEL );
654654 if (uinfo == NULL || uctl == NULL )
655655 goto __unalloc ;
656656 snd_runtime_check (!kctl -> info (kctl , uinfo ), goto __unalloc );
@@ -768,8 +768,8 @@ static int snd_mixer_oss_get_recsrc2(snd_mixer_oss_file_t *fmixer, unsigned int
768768 snd_ctl_elem_value_t * uctl ;
769769 int err , idx ;
770770
771- uinfo = kcalloc ( 1 , sizeof (* uinfo ), GFP_KERNEL );
772- uctl = kcalloc ( 1 , sizeof (* uctl ), GFP_KERNEL );
771+ uinfo = kzalloc ( sizeof (* uinfo ), GFP_KERNEL );
772+ uctl = kzalloc ( sizeof (* uctl ), GFP_KERNEL );
773773 if (uinfo == NULL || uctl == NULL ) {
774774 err = - ENOMEM ;
775775 goto __unlock ;
@@ -813,8 +813,8 @@ static int snd_mixer_oss_put_recsrc2(snd_mixer_oss_file_t *fmixer, unsigned int
813813 int err ;
814814 unsigned int idx ;
815815
816- uinfo = kcalloc ( 1 , sizeof (* uinfo ), GFP_KERNEL );
817- uctl = kcalloc ( 1 , sizeof (* uctl ), GFP_KERNEL );
816+ uinfo = kzalloc ( sizeof (* uinfo ), GFP_KERNEL );
817+ uctl = kzalloc ( sizeof (* uctl ), GFP_KERNEL );
818818 if (uinfo == NULL || uctl == NULL ) {
819819 err = - ENOMEM ;
820820 goto __unlock ;
0 commit comments