Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 7 Jan 2002 08:02:50 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 7 Jan 2002 08:02:41 -0500 Received: from ns.suse.de ([213.95.15.193]:1804 "HELO Cantor.suse.de") by vger.kernel.org with SMTP id ; Mon, 7 Jan 2002 08:02:25 -0500 Date: Mon, 7 Jan 2002 14:02:24 +0100 (CET) From: Dave Jones To: Jens Axboe Cc: "Adam J. Richter" , Subject: Re: Patch?: linux-2.5.2-pre9/drivers/block/ll_rw_blk.c blk_rq_map_sg simplification In-Reply-To: <20020107100335.A6940@suse.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 7 Jan 2002, Jens Axboe wrote: > > The following patch removes gotos from blk_rq_map_sg, making > > it more readable and five lines shorter. I think the compiler should > > generate the same code. I have not tested this other than to > > verify that it compiles. > Well, I really think the original is much more readable than the changed > version :-) I agree. Upon seeing the patch, I was reminded of the monster enormous conditional at http://gcc.gnu.org/projects/beginner.html not quite _that_ bad, but getting there 8) -- | Dave Jones. http://www.codemonkey.org.uk | 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/