Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 9 Feb 2002 13:35:16 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 9 Feb 2002 13:35:06 -0500 Received: from mail.pha.ha-vel.cz ([195.39.72.3]:2829 "HELO mail.pha.ha-vel.cz") by vger.kernel.org with SMTP id ; Sat, 9 Feb 2002 13:35:03 -0500 Date: Sat, 9 Feb 2002 19:35:00 +0100 From: Vojtech Pavlik To: Bill Davidsen Cc: Pavel Machek , Dave Jones , kernel list , vojtech@ucw.cz, andre@linuxdiskcert.org Subject: Re: ide cleanup Message-ID: <20020209193500.A18944@suse.cz> In-Reply-To: <20020206205332.GA3217@elf.ucw.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from davidsen@tmr.com on Sat, Feb 09, 2002 at 01:19:58PM -0500 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Feb 09, 2002 at 01:19:58PM -0500, Bill Davidsen wrote: > On Wed, 6 Feb 2002, Pavel Machek wrote: > > > -#ifdef CONFIG_BLK_DEV_PDC4030 > > if (IS_PDC4030_DRIVE) { > > extern ide_startstop_t promise_rw_disk(ide_drive_t *, struct request *, unsigned long); > > return promise_rw_disk(drive, rq, block); > > } > > -#endif /* CONFIG_BLK_DEV_PDC4030 */ > > Am I reading this totally wrong, or do you really think it's a good idea > to test for a drive even if the user didn't configure such hardware? Well, since IS_PDC4030_DRIVE will always be 0 in that case, the test will be optimized out ... -- Vojtech Pavlik SuSE Labs - 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/