From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E545AC433E0 for ; Wed, 27 Jan 2021 16:09:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 944CF20773 for ; Wed, 27 Jan 2021 16:09:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234398AbhA0QI7 (ORCPT ); Wed, 27 Jan 2021 11:08:59 -0500 Received: from mail.kernel.org ([198.145.29.99]:42050 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236425AbhA0QHg (ORCPT ); Wed, 27 Jan 2021 11:07:36 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id CB390207CC; Wed, 27 Jan 2021 16:06:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611763613; bh=TBiVdWNTKBxGL5C6wtlgzd2GcCfyPi02KPshb6e+jeM=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=SwdW0TktI9sBGvj6wz48I+buvaYvvjBOEypEw/ZV2ww9FFDfZxnAGUAOYBsHJaQxp uDCXnm7Y+Jlrlc7jPCntfC2SL8P8hVVBCnQoM4Ofm7akEEs7sCb8FDdwizdwt/ZMKk mJ5JOz+P/5vXPVkMmhmarNNeAC0/beYCn+jrKBH2g3ywi5AjgVSPW6yiEmS14yEXXF e+FcRZYhqDtVorRN4HUjqYEwhBD/3XLdd/3foTCO8RcZevxQOPEG+oI1kzwI9MQneg /fw7BNKdhDJQJHg19ZxYWSFIvMzaWoSrEZNtzkkXXfgBoAlg74ErtyHhaKqOvFRoEW CT9VTuVNEoEFQ== Date: Wed, 27 Jan 2021 10:06:50 -0600 From: Bjorn Helgaas To: "Rafael J. Wysocki" Cc: "Rafael J . Wysocki" , Len Brown , Alex Deucher , Christian =?iso-8859-1?Q?K=F6nig?= , Jean Delvare , Guenter Roeck , Corentin Chary , Mark Brown , Jaroslav Kysela , Takashi Iwai , linux-spi , acpi4asus-user@lists.sourceforge.net, linux-hwmon@vger.kernel.org, amd-gfx list , "moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." , ACPI Devel Maling List , Bjorn Helgaas Subject: Re: [PATCH] ACPI: Test for ACPI_SUCCESS rather than !ACPI_FAILURE Message-ID: <20210127160650.GA2991034@bjorn-Precision-5520> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org On Wed, Jan 27, 2021 at 04:44:02PM +0100, Rafael J. Wysocki wrote: > On Wed, Jan 27, 2021 at 4:16 PM Bjorn Helgaas wrote: > > > > On Tue, Jan 26, 2021 at 02:23:17PM -0600, Bjorn Helgaas wrote: > > > From: Bjorn Helgaas > > > > > > The double negative makes it hard to read "if (!ACPI_FAILURE(status))". > > > Replace it with "if (ACPI_SUCCESS(status))". > > > > > > Signed-off-by: Bjorn Helgaas > > > --- > > > > > > This isn't really an ACPI patch, but I'm sending it to you, Rafael, since > > > it seems easier to just apply these all at once. But I'd be happy to split > > > them up into individual patches if you'd rather. > > > > Thanks, everybody. Rafael, I'll just merge this via my tree to avoid > > burdening you. > > It may conflict with some janitorial stuff I'm doing, though, so > unless you've already applied it, I'd prefer to take it via the ACPI > tree. No problem, it's all yours! Bjorn