Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 13 Feb 2002 05:47:03 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 13 Feb 2002 05:46:53 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.31.123]:33542 "EHLO atrey.karlin.mff.cuni.cz") by vger.kernel.org with ESMTP id ; Wed, 13 Feb 2002 05:46:40 -0500 Date: Wed, 13 Feb 2002 11:46:32 +0100 From: Pavel Machek To: Rob Radez Cc: kernel list Subject: Re: small IDE cleanup: void * should not be used unless neccessary Message-ID: <20020213104632.GF32687@atrey.karlin.mff.cuni.cz> In-Reply-To: <20020211220937.GA121@elf.ucw.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.24i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi! > > This is really easy, please apply. (It will allow me to kill few casts > > in future). > > Pavel > > > > --- linux/include/linux/ide.h Mon Feb 11 21:15:04 2002 > > +++ linux-dm/include/linux/ide.h Mon Feb 11 22:36:12 2002 > > @@ -529,7 +531,7 @@ > > > > typedef struct hwif_s { > > struct hwif_s *next; /* for linked-list in ide_hwgroup_t */ > > - void *hwgroup; /* actually (ide_hwgroup_t *) */ > > + struct hwgroup_s *hwgroup; /* actually (ide_hwgroup_t *) */ > > ide_ioreg_t io_ports[IDE_NR_PORTS]; /* task file registers */ > > hw_regs_t hw; /* Hardware info */ > > ide_drive_t drives[MAX_DRIVES]; /* drive info */ > > If you're doing this, would it make sense to get rid of the useless casting > of the hwgroup member? You just guessed why I did it ;-). Pavel -- Casualities in World Trade Center: ~3k dead inside the building, cryptography in U.S.A. and free speech in Czech Republic. - 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/