From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752725AbbATSUj (ORCPT ); Tue, 20 Jan 2015 13:20:39 -0500 Received: from mail.savoirfairelinux.com ([209.172.62.77]:57439 "EHLO mail.savoirfairelinux.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751791AbbATSUh (ORCPT ); Tue, 20 Jan 2015 13:20:37 -0500 Date: Tue, 20 Jan 2015 13:20:36 -0500 (EST) From: Vivien Didelot To: Corentin Chary Cc: platform-driver-x86@vger.kernel.org, Darren Hart , acpi4asus-user , LKML , kernel@savoirfairelinux.com Message-ID: <810077082.264036.1421778036663.JavaMail.root@mail> In-Reply-To: Subject: Re: [PATCH v2 3/3] asus-laptop: cleanup is_visible MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Mailer: Zimbra 7.1.4_GA_2555 (ZimbraWebClient - FF3.0 (Linux)/7.1.4_GA_2555) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@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