Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp2114943rwa; Mon, 22 Aug 2022 02:18:54 -0700 (PDT) X-Google-Smtp-Source: AA6agR53YFIiSFPGZMSkWGRalPUXJhGkILdgAL837F6BzPjQqJ7P+wHS61DadOOwGBJyxLB8d9h5 X-Received: by 2002:a05:6402:2499:b0:440:942a:40c2 with SMTP id q25-20020a056402249900b00440942a40c2mr15624006eda.37.1661159934643; Mon, 22 Aug 2022 02:18:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661159934; cv=none; d=google.com; s=arc-20160816; b=mQNzvF3pbSLFu/Gp4fMBTdTsEZEIkuzXiKkhq2EWAlI2FCr8SjhmVjMYTv6ST0jiJ5 wu9ZGqAOBhELtwpyPhcwJWeIzUtzeawIbPsH0SvXjG8N86cCwFE2ZDH6fi4VLwpwzAI1 FcUyUrNGOsfbSzmYhNI5dy0wRUrd4cQwjDlTk0rE/DeHIJICPN9rWgDTkFHROeEbVr2Y 5uvIwM3lreU9VqkerOP5XzWMJjcsOJ59Un0iKV37alv3aftiNm5x/vIQpW4m+uyH4pO7 SF3hYw0nQIJlQOYSjwjhnO0M3GyegiIeVzK9CofILHuaOCdiLgnTsla2XSX6iuMpsetQ f8Xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=LYllZZbt0vshkBJbNozLI1b4B+EylFNiMlEf1N5+yNY=; b=jGC0oJqMUTWh5axb/al0SB3lZGvtvkEJaIUvLiZJpHl0d9q7z4tGFWzDP/ncJm4P1B 6iPcVHf/8lGyXxV4SQm8ejMjHvXIIMVdDdQstNKafRiyjrWGdT5M12hfhjesew0DArbs 6EGJByM/8zP25HTRJq21W2FBWrepIBbwLY4w5dBOPmP9PLhMT1Pxlk0nW4OXSXedLyok 9LMANTAD7pjfpYXcDRNempO39FHPy44/38PFlnICYAoZs01PVWVw2Hbs9ljof9OyprP8 gMWMcBcZoYvdJpIm++ruH5+gBpkYzcdviUkd7WqCQFodcGm6Xm5rX5ju0o+SoAbZTvNh tAJQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gt18-20020a1709072d9200b0073d8a2435d0si795489ejc.264.2022.08.22.02.18.27; Mon, 22 Aug 2022 02:18:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234249AbiHVJQW (ORCPT + 99 others); Mon, 22 Aug 2022 05:16:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234282AbiHVJPQ (ORCPT ); Mon, 22 Aug 2022 05:15:16 -0400 Received: from mail.nfschina.com (unknown [IPv6:2400:dd01:100f:2:72e2:84ff:fe10:5f45]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 219212B1BB; Mon, 22 Aug 2022 02:14:35 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id B5AB81E80D2C; Mon, 22 Aug 2022 17:10:54 +0800 (CST) X-Virus-Scanned: amavisd-new at test.com Received: from mail.nfschina.com ([127.0.0.1]) by localhost (mail.nfschina.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nNW8Pz23E0UV; Mon, 22 Aug 2022 17:10:52 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: zeming@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id 12A381E80CD1; Mon, 22 Aug 2022 17:10:52 +0800 (CST) From: Li zeming To: robert.moore@intel.com, rafael.j.wysocki@intel.com, lenb@kernel.org Cc: linux-acpi@vger.kernel.org, devel@acpica.org, linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] power/acpi: Remove unnecessary return in acpi_os_** function; Date: Mon, 22 Aug 2022 17:14:16 +0800 Message-Id: <20220822091416.6177-1-zeming@nfschina.com> X-Mailer: git-send-email 2.18.2 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove the return in the function; it looks clearer. Signed-off-by: Li zeming --- tools/power/acpi/os_specific/service_layers/osunixxf.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/tools/power/acpi/os_specific/service_layers/osunixxf.c b/tools/power/acpi/os_specific/service_layers/osunixxf.c index b3651a04d68c..127630c38f1a 100644 --- a/tools/power/acpi/os_specific/service_layers/osunixxf.c +++ b/tools/power/acpi/os_specific/service_layers/osunixxf.c @@ -510,8 +510,6 @@ void *acpi_os_map_memory(acpi_physical_address where, acpi_size length) void acpi_os_unmap_memory(void *where, acpi_size length) { - - return; } #endif @@ -1313,5 +1311,4 @@ acpi_os_execute(acpi_execute_type type, void acpi_os_wait_events_complete(void) { - return; } -- 2.18.2