From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753620AbdARTIs (ORCPT ); Wed, 18 Jan 2017 14:08:48 -0500 Received: from mail-yw0-f194.google.com ([209.85.161.194]:34023 "EHLO mail-yw0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752046AbdARTIp (ORCPT ); Wed, 18 Jan 2017 14:08:45 -0500 MIME-Version: 1.0 In-Reply-To: <20170117071714.21594-1-kernel@kempniu.pl> References: <20170116132204.6421-1-kernel@kempniu.pl> <20170117071714.21594-1-kernel@kempniu.pl> From: Andy Shevchenko Date: Wed, 18 Jan 2017 21:06:00 +0200 Message-ID: Subject: Re: [PATCH v2 6+/6] platform/x86: dell-wmi-led: fix coding style issues To: =?UTF-8?B?TWljaGHFgiBLxJlwaWXFhA==?= Cc: Richard Purdie , Jacek Anaszewski , Pavel Machek , =?UTF-8?Q?Pali_Roh=C3=A1r?= , Darren Hart , Jaroslav Kysela , Takashi Iwai , Anthony Wong , linux-leds@vger.kernel.org, Platform Driver , ALSA Development Mailing List , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id v0IJ9mN4000667 On Tue, Jan 17, 2017 at 9:17 AM, Michał Kępień wrote: > Fix coding style issues in dell-wmi-led which checkpatch complains about > to make sure the module gets a clean start in the x86 platform driver > subsystem. > + status = wmi_evaluate_method(DELL_LED_BIOS_GUID, 1, 1, &input, &output); > You may remove extra line. > if (ACPI_FAILURE(status)) > return status; > - if (0 == on_eighths) > + if (on_eighths == 0) > on_eighths = 1; > if (on_eighths > 255) > on_eighths = 255; > - if (0 == off_eighths) > + if (off_eighths == 0) > off_eighths = 1; > if (off_eighths > 255) > off_eighths = 255; Obviously they both are custom clamp{_t}(). -- With Best Regards, Andy Shevchenko