Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161047AbXAEKku (ORCPT ); Fri, 5 Jan 2007 05:40:50 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1161049AbXAEKku (ORCPT ); Fri, 5 Jan 2007 05:40:50 -0500 Received: from outpipe-village-512-1.bc.nu ([81.2.110.250]:33544 "EHLO lxorguk.ukuu.org.uk" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1161047AbXAEKkt (ORCPT ); Fri, 5 Jan 2007 05:40:49 -0500 Date: Fri, 5 Jan 2007 10:51:13 +0000 From: Alan To: "Robert P. J. Day" Cc: "Ahmed S. Darwish" , Rolf Eike Beer , linux-kernel@vger.kernel.org Subject: Re: [PATCH 2.6.20-rc3] TTY_IO: Remove unnecessary kmalloc casts Message-ID: <20070105105113.120d72c9@localhost.localdomain> In-Reply-To: References: <20070105063600.GA13571@Ahmed> <200701050910.11828.eike-kernel@sf-tec.de> <20070105100610.GA382@Ahmed> X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.10.4; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 761 Lines: 22 > represents a kmalloc->kzalloc cleanup (there's lots of those), and > also see if you can replace one of these: > > sizeof(struct blah) > > with one of these: > > sizeof(*blahptr) Patches that do this will get rejected by the tty maintainer in favour of the clarity of the sizeof(struct xyz) format 8) Ahmed - if you can send me a patch for the tty_io/tty_ioctl code which switches to kzalloc where it makes sense and removes un-needed casts I'll review it and push the bits that look sane upstream. Alan - 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/