Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 26 Mar 2003 11:26:48 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 26 Mar 2003 11:26:48 -0500 Received: from wohnheim.fh-wedel.de ([195.37.86.122]:62351 "EHLO wohnheim.fh-wedel.de") by vger.kernel.org with ESMTP id ; Wed, 26 Mar 2003 11:26:47 -0500 Date: Wed, 26 Mar 2003 17:37:32 +0100 From: =?iso-8859-1?Q?J=F6rn?= Engel To: Martin Schwidefsky Cc: Christoph Hellwig , linux-kernel@vger.kernel.org, torvalds@transmeta.com Subject: Re: [PATCH] s390 update (4/9): common i/o layer update. Message-ID: <20030326163732.GK20098@wohnheim.fh-wedel.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.3.28i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 869 Lines: 26 On Wed, 26 March 2003 17:27:23 +0100, Martin Schwidefsky wrote: > > > > + if (sch->lpm == 0) > > > + return -ENODEV; > > > + else > > > + return -EACCES; > > > > I'd write this as return (sch->lpm ? -EACCES : -ENODEV), but maybe I'm > > just too picky.. > No, you are not. return (sch->lpm ? -EACCES : -ENODEV) is better. Are the brackets really necessary? This is highly personal, but I spend a few second "stubling" over them, which makes the code less readable for me. J?rn -- With a PC, I always felt limited by the software available. On Unix, I am limited only by my knowledge. -- Peter J. Schoenster - 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/