Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752879AbWLSPmN (ORCPT ); Tue, 19 Dec 2006 10:42:13 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752878AbWLSPmN (ORCPT ); Tue, 19 Dec 2006 10:42:13 -0500 Received: from tmailer.gwdg.de ([134.76.10.23]:40410 "EHLO tmailer.gwdg.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752883AbWLSPmM (ORCPT ); Tue, 19 Dec 2006 10:42:12 -0500 Date: Tue, 19 Dec 2006 16:41:09 +0100 (MET) From: Jan Engelhardt To: "Robert P. J. Day" cc: Linux kernel mailing list Subject: Re: [PATCH] Get rid of most of the remaining k*alloc() casts. In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Report: Content analysis: 0.0 points, 6.0 required _SUMMARY_ Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 716 Lines: 21 > Get rid of the remaining obvious pointer casts of all k[cmz]alloc >calls, and do a little whitespace cleanup on the result, based on the >CodingStyle file. >- struct intmem_allocation* alloc = >- (struct intmem_allocation*)kmalloc(sizeof *alloc, GFP_KERNEL); >+ struct intmem_allocation* alloc = >+ kmalloc(sizeof(*alloc), GFP_KERNEL); At the same time, you could make * alloc -> *alloc when it falls on the same line as the kmczalloc cleanup. :) -`J' -- - 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/