From 9899bafe997a4e020f302c99a6e025b4e8b25191 Mon Sep 17 00:00:00 2001 From: tzafrir Date: Thu, 10 Jan 2008 18:12:27 +0000 Subject: xpp.r5254: * Improved polarity reversal hangups in FXO (r5194). Fixed false detection of polarity reversals. * Optimize xframe allocation, by not zeroing the whole memory (in get_xframe()). * Fixed erronous error message that appeared sometimes from fpga_load during USB renumeration. * Zaptel::Chans now provides battery() reporting for some FXO channels (Astribank FXO and wcfxo). git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@3643 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- xpp/xpp_usb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'xpp/xpp_usb.c') diff --git a/xpp/xpp_usb.c b/xpp/xpp_usb.c index 73f351c..785e713 100644 --- a/xpp/xpp_usb.c +++ b/xpp/xpp_usb.c @@ -662,14 +662,12 @@ static int xusb_probe(struct usb_interface *interface, const struct usb_device_i } /* allocate memory for our device state and initialize it */ - xusb = kmalloc(sizeof(xusb_t), GFP_KERNEL); + xusb = KZALLOC(sizeof(xusb_t), GFP_KERNEL); if (xusb == NULL) { ERR("xpp_usb: Unable to allocate new xpp usb bus\n"); retval = -ENOMEM; goto probe_failed; } - memset(xusb, 0, sizeof(xusb_t)); - init_MUTEX (&xusb->sem); atomic_set(&xusb->pending_writes, 0); atomic_set(&xusb->pcm_tx_drops, 0); -- cgit v1.2.3