From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vivien Didelot Subject: Re: [PATCH v2 3/3] asus-laptop: cleanup is_visible Date: Tue, 20 Jan 2015 13:20:36 -0500 (EST) Message-ID: <810077082.264036.1421778036663.JavaMail.root@mail> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Corentin Chary Cc: platform-driver-x86@vger.kernel.org, Darren Hart , acpi4asus-user , LKML , kernel@savoirfairelinux.com List-Id: platform-driver-x86.vger.kernel.org Hi Corentin, > > Use the attribute indexes and concise the if statements. > > > Why ? I really don't see that as an improvement. The improvement is code clarity and maintainability. I'm not use we want to keep multiple returns and this goto thing. I think per-attribute if-statements are clearer. Thanks, -v