[svn-commits] sruffell: linux/trunk r9563 - /linux/trunk/drivers/dahdi/dahdi_dynamic_loc.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Jan 3 18:24:52 UTC 2011


Author: sruffell
Date: Mon Jan  3 12:24:48 2011
New Revision: 9563

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9563
Log:
dahdi_dynamic_loc: kmalloc/memset -> kzalloc

Signed-off-by: Shaun Ruffell <sruffell at digium.com>
Acked-by: Kinsey Moore <kmoore at digium.com>

Modified:
    linux/trunk/drivers/dahdi/dahdi_dynamic_loc.c

Modified: linux/trunk/drivers/dahdi/dahdi_dynamic_loc.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/dahdi_dynamic_loc.c?view=diff&rev=9563&r1=9562&r2=9563
==============================================================================
--- linux/trunk/drivers/dahdi/dahdi_dynamic_loc.c (original)
+++ linux/trunk/drivers/dahdi/dahdi_dynamic_loc.c Mon Jan  3 12:24:48 2011
@@ -179,11 +179,8 @@
 	if (key == -1 || id == -1)
 		goto INVALID_ADDRESS;
 
-	d = kmalloc(sizeof(struct dahdi_dynamic_local), GFP_KERNEL);
+	d = kzalloc(sizeof(*d), GFP_KERNEL);
 	if (d) {
-		/* Zero it out */
-		memset(d, 0, sizeof(struct dahdi_dynamic_local));
-
 		d->key = key;
 		d->id = id;
 		d->span = span;




More information about the svn-commits mailing list