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=-9.0 required=3.0 tests=BAYES_00,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham 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 1A3DEC47094 for ; Thu, 10 Jun 2021 13:26:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EA16E613F5 for ; Thu, 10 Jun 2021 13:26:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230272AbhFJN2E (ORCPT ); Thu, 10 Jun 2021 09:28:04 -0400 Received: from mail-ot1-f52.google.com ([209.85.210.52]:37497 "EHLO mail-ot1-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230343AbhFJN2D (ORCPT ); Thu, 10 Jun 2021 09:28:03 -0400 Received: by mail-ot1-f52.google.com with SMTP id 102-20020a9d0eef0000b02903fccc5b733fso4467368otj.4 for ; Thu, 10 Jun 2021 06:26:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=UYLLvIPdE1o/76MbzTifD7wCh4SHoiMTnhxgN/DYxHY=; b=OapmxcEg6iIgLpPkW4qWQ5y8g4VaxGIq9nYro86C42T0uF/FTHrWSjYJcp7/klJZTt A6B37Ogr22iHc6o/qqOY8VvLvy/Pa+Q4/cI8LIQdxNs5V+9mtsnaGNfokrTkiIEf5lpA iI1AItfuGN8PqRTpoR1T5AOV2pfICRtjExsRhdR9XTH2Rz1rFD/QPPBDKWCXAYAaq26L HaBaG/nnhzXXsRdK1M1AD1mGNNKsqzDgGAZ2vXYR76Q3Vvlf9DRDFdW/4b+Ya2nXrvxI DIKQZI7YoS0AO+SqU2OWTm96w/hMIPkKaYj30de6qj2R7/oIoIxAc0DTRAU/NVEjVjOo Zgvw== X-Gm-Message-State: AOAM533gCLHdgY9a7lMVu/IHeXNDtBnliET0B3MMxyQQqTYJ833G99Kl 1KRZu5ze/XgO6prJkYjC20MbXKp659BTrfwLoLs= X-Google-Smtp-Source: ABdhPJz8dOZ24lkxjAMc/Ce4MEPGtGLCrotX98UC4s52IhKihJgXwSQX61y+k1bRNRQreE7Ykzqa5JLFmhiXlj1wIso= X-Received: by 2002:a9d:3e53:: with SMTP id h19mr2468455otg.260.1623331567160; Thu, 10 Jun 2021 06:26:07 -0700 (PDT) MIME-Version: 1.0 References: <20210609175130.224274-1-hdegoede@redhat.com> In-Reply-To: From: "Rafael J. Wysocki" Date: Thu, 10 Jun 2021 15:25:56 +0200 Message-ID: Subject: Re: [PATCH] ACPI: Remove redundant clearing of context->ret.pointer from acpi_run_osc() To: Mika Westerberg , Hans de Goede Cc: "Rafael J . Wysocki" , ACPI Devel Maling List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org On Thu, Jun 10, 2021 at 9:01 AM Mika Westerberg wrote: > > On Wed, Jun 09, 2021 at 07:51:30PM +0200, Hans de Goede wrote: > > context->ret.pointer already gets set to NULL at the beginning of > > acpi_run_osc() and it only gets assigned a new value in the success > > path near the end of acpi_run_osc(), so the clearing of > > context->ret.pointer (when status != AE_OK) at the end of > > acpi_run_osc() is redundant since it will always already be NULL when > > status != AE_OK. > > > > Signed-off-by: Hans de Goede > > Reviewed-by: Mika Westerberg Applied as 5.14 material, thanks!