[PATCH 77] sound/oss/via82cxxx_audio.c: kmalloc + memset conversion to kzalloc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Mariusz Kozlowski <[email protected]>

 sound/oss/via82cxxx_audio.c | 91182 -> 91145 (-37 bytes)
 sound/oss/via82cxxx_audio.o | 180104 -> 179984 (-120 bytes)

 sound/oss/via82cxxx_audio.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

--- linux-2.6.23-rc1-mm1-a/sound/oss/via82cxxx_audio.c	2007-07-26 13:07:39.000000000 +0200
+++ linux-2.6.23-rc1-mm1-b/sound/oss/via82cxxx_audio.c	2007-07-31 15:23:27.000000000 +0200
@@ -3401,7 +3401,7 @@ static int __devinit via_init_one (struc
 	if (rc)
 		goto err_out_res;

-	card = kmalloc (sizeof (*card), GFP_KERNEL);
+	card = kzalloc(sizeof(*card), GFP_KERNEL);
 	if (!card) {
 		printk (KERN_ERR PFX "out of memory, aborting\n");
 		rc = -ENOMEM;
@@ -3410,7 +3410,6 @@ static int __devinit via_init_one (struc

 	pci_set_drvdata (pdev, card);

-	memset (card, 0, sizeof (*card));
 	card->pdev = pdev;
 	card->baseaddr = pci_resource_start (pdev, 0);
 	card->card_num = via_num_cards++;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux