Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1209244ybt; Thu, 9 Jul 2020 01:09:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8jIWcJ7jrj5jCl8qvYSABbFkL5ZLIRiPdddknPX6DTsZ8YczV0EghgOEK+yDCLXTnUeDv X-Received: by 2002:a17:906:924d:: with SMTP id c13mr47950991ejx.518.1594282191827; Thu, 09 Jul 2020 01:09:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594282191; cv=none; d=google.com; s=arc-20160816; b=zP22nimhr/ac33qNqiHpTIj5Vg4h2fJ0sCK68NnVMMymxbuZiunMjo15DPO9OxndLV 513Ltax/887BtgpaLORrPrIhPAXmVL0MQynhUvryUof6E6reSdV9q95c2ZZPCaj5qSlG jB7rI+4Ixq1ROwjz7zhVqdgexR2usMWZABUndkINFA0Grj2CIFhyDQXCQSuNiqhF/luU qWMOi5ytc9k8iBCe4Ss2gE9+03zvQWRNjssuLoc5dUpOxgN00SVJwEawuew4xJ1G2YqI LFLMU7lQi7E7TR8xav4OLgFjfqSmvnCaPJzuQxquffrgoXwQhj5R7Lrf2xfExfPZOzlQ 8qdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=NDh9ayChv3YtSY5Ft53RE0evgjQNj9SdSF8aiIHjHmo=; b=Yi0ZmZzqD5iB8gD2GdkC1pBhDjKjHiUo9rBbZdCZr/xRTSlWc0G8lmEIvN8NX6ivns OVDLxpo37oCyDqYqWtH6biXLuEDdTfk9RCQk7saWt4qTXfe+kf0Gnc4MK7svrmvykBXG ID+2PKRakv+PS9vHt1E1U1iJDUVrefIWa3o0ffa0qQ//7Omk0ZA4B/16lWj0Kxj7rwQZ 3KOwfeCDPWbsFZP/c6YOX/CvORkcGdMlX5l5CDdptPdLJ6U7KUxtg+hMRBETlRm8+wHg TZ6Li6EcnBQDyxjylQqxknC6O+cXI/9ywjz9T5Yapdv44iKXoryMKw0HNqJwBSPvSQro cjVg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b21si1578370eds.107.2020.07.09.01.09.29; Thu, 09 Jul 2020 01:09:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726648AbgGIIIV (ORCPT + 99 others); Thu, 9 Jul 2020 04:08:21 -0400 Received: from smtp23.cstnet.cn ([159.226.251.23]:46064 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726460AbgGIIIU (ORCPT ); Thu, 9 Jul 2020 04:08:20 -0400 Received: from localhost (unknown [159.226.5.99]) by APP-03 (Coremail) with SMTP id rQCowAD3_79p0AZfhAC1Aw--.17523S2; Thu, 09 Jul 2020 16:08:09 +0800 (CST) From: Xu Wang To: robert.moore@intel.com, erik.kaneda@intel.com, rafael.j.wysocki@intel.com, lenb@kernel.org, vulab@iscas.ac.cn, linux-acpi@vger.kernel.org, devel@acpica.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH] service_layers: osunixmap: Remove unnecessary brackets in acpi_os_map_memory() Date: Thu, 9 Jul 2020 08:08:06 +0000 Message-Id: <20200709080806.14328-1-vulab@iscas.ac.cn> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: rQCowAD3_79p0AZfhAC1Aw--.17523S2 X-Coremail-Antispam: 1UD129KBjvdXoW7JrW8Cr13uFWUZFW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I Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove extra brackets. Signed-off-by: Xu Wang --- tools/power/acpi/os_specific/service_layers/osunixmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/power/acpi/os_specific/service_layers/osunixmap.c b/tools/power/acpi/os_specific/service_layers/osunixmap.c index c565546e85bc..52f3e70b5c81 100644 --- a/tools/power/acpi/os_specific/service_layers/osunixmap.c +++ b/tools/power/acpi/os_specific/service_layers/osunixmap.c @@ -70,7 +70,7 @@ void *acpi_os_map_memory(acpi_physical_address where, acpi_size length) fd = open(SYSTEM_MEMORY, O_RDONLY | O_BINARY); if (fd < 0) { fprintf(stderr, "Cannot open %s\n", SYSTEM_MEMORY); - return (NULL); + return NULL; } /* Align the offset to use mmap */ @@ -85,7 +85,7 @@ void *acpi_os_map_memory(acpi_physical_address where, acpi_size length) if (mapped_memory == MAP_FAILED) { fprintf(stderr, "Cannot map %s\n", SYSTEM_MEMORY); close(fd); - return (NULL); + return NULL; } close(fd); -- 2.17.1