From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S267351AbUGVW6h (ORCPT ); Thu, 22 Jul 2004 18:58:37 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S267353AbUGVW6h (ORCPT ); Thu, 22 Jul 2004 18:58:37 -0400 Received: from fw.osdl.org ([65.172.181.6]:10215 "EHLO mail.osdl.org") by vger.kernel.org with ESMTP id S267351AbUGVW6f (ORCPT ); Thu, 22 Jul 2004 18:58:35 -0400 Date: Thu, 22 Jul 2004 18:57:33 -0700 From: Andrew Morton To: Ryan Arnold Cc: linux-kernel@vger.kernel.org, paulus@samba.org Subject: Re: [announce] HVCS for inclusion in 2.6 tree Message-Id: <20040722185733.2806e615.akpm@osdl.org> In-Reply-To: <1090528007.3161.7.camel@localhost> References: <1089819720.3385.66.camel@localhost> <16633.55727.513217.364467@cargo.ozlabs.ibm.com> <1090528007.3161.7.camel@localhost> X-Mailer: Sylpheed version 0.9.4 (GTK+ 1.2.10; i686-pc-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 Ryan Arnold wrote: > A little stylistic thing: > + struct hvcs_struct *hvcsd = (struct hvcs_struct *)tty->driver_data; > + struct hvcs_struct *hvcsd = (struct hvcs_struct *)tty->driver_data; > + struct hvcs_struct *hvcsd = (struct hvcs_struct *)dev_instance; It's not necessary to add a typecast when assigning to and from a void*. In fact, it's harmful: if someone were to later change, say, tty->driver_data to a `struct foo *', your typecast will suppress the warning which we would very much like to receive.