| From | Mariusz Kozlowski <> | Subject | [PATCH 77] sound/oss/via82cxxx_audio.c: kmalloc + memset conversion to kzalloc | Date | Wed, 1 Aug 2007 00:13:20 +0200 |
| |
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
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 majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|