Procházet zdrojové kódy

staging: media: Use kcalloc instead of kzalloc

This patch uses kcalloc instead of kzalloc function.
A coccinelle script was used to make this change.

Signed-off-by: Navya Sri Nizamkari <navyasri.tech@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Navya Sri Nizamkari před 10 roky
rodič
revize
5869066a57
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      drivers/staging/media/bcm2048/radio-bcm2048.c

+ 1 - 1
drivers/staging/media/bcm2048/radio-bcm2048.c

@@ -1792,7 +1792,7 @@ static int bcm2048_get_rds_data(struct bcm2048_device *bdev, char *data)
 		goto unlock;
 		goto unlock;
 	}
 	}
 
 
-	data_buffer = kzalloc(BCM2048_MAX_RDS_RADIO_TEXT*5, GFP_KERNEL);
+	data_buffer = kcalloc(BCM2048_MAX_RDS_RADIO_TEXT, 5, GFP_KERNEL);
 	if (!data_buffer) {
 	if (!data_buffer) {
 		err = -ENOMEM;
 		err = -ENOMEM;
 		goto unlock;
 		goto unlock;