Re: [PATCH 25] drivers/usb/misc/ftdi-elan.c: kmalloc + memset conversion to kzalloc
Christoph Lameter <[email protected]>
| Newsgroups | gmane.linux.usb.devel,gmane.linux.kernel.janitors,gmane.linux.kernel |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 31 Jul 2007, Mariusz Kozlowski wrote:
> @@ -2777,12 +2777,14 @@ static int ftdi_elan_probe(struct usb_in
> size_t buffer_size;
> int i;
> int retval = -ENOMEM;
> - struct usb_ftdi *ftdi = kmalloc(sizeof(struct usb_ftdi), GFP_KERNEL);
> - if (ftdi == NULL) {
> + struct usb_ftdi *ftdi;
> +
> + ftdi = kzalloc(sizeof(struct usb_ftdi), GFP_KERNEL);
> + if (!ftdi) {
Whitespace damage soewhere?
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel