Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6419511rwb; Mon, 5 Dec 2022 12:04:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf6dz7r4nrf+j2BUKrYXHPRsEQgQxpsB3TobxtyyhneV/1G09PzMBSxxHR2RrjH7mOEyxptT X-Received: by 2002:a17:906:882:b0:7ad:e161:b026 with SMTP id n2-20020a170906088200b007ade161b026mr66304554eje.760.1670270684587; Mon, 05 Dec 2022 12:04:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670270684; cv=none; d=google.com; s=arc-20160816; b=GU5c23hnxgDZzt6bbhKpQ+EyZdFBcsL88iCcmgSy1Yqc/8vbn7JqYG/nKHhczTuJB/ zr9Yl8eJIfEcjJoT3MhTnTHYaDMxUj+5joLI7eq5KmLs98Qw2giMRcILnvTDgSyo0nCw yjSHf1vWgTB3EwtF09ZFjMwBU7FxJegWNllNgC+NhGo4+iwnrbN5B1TVegjQ+YZ5WG0w xG8ChN84FRhLxggjRstDFJXDWP27D8hXS3FnSfgXHulna+eLImPcVyjiAi56FRqY2Why +l5YV3DM2d2qlTCaoB5CchqwP8pZR/GksqXl79eOHVwH7zGK92b+zFxoEP9Tlv/Lr1oG 01Dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=MTK7i2tHnrDYBTYp+p9qvUA4KzOeUjkaejb/bQ7lgi4=; b=RM9s5Yf4e4LwygKTxuRdPsMfrflDdjcIPJ0bnFQeTQH/lta/Gy/bOdWsxXGv/B/aOu oercX3IaMX59QyMjjjG3HFGBYm1+j7z7hcA1w6JpPGUENVEGSxhic6QF/N1PXwDV8J3n cWIf3ywH1JCvOEHVmkbUe0jI31QfXlWHg/ZeRT8Ons4iRbr/5i6s/VNck91FzDJ0wkNK Mw3mawvYvT6t9lMYJZXaKkxcNblGvOMf3CqIzdADkSPNa5RmCSZH2QikV/M45VmmdfA5 4kd3v4bwmloo1DOkrSYPlTHVsRHpcjHTVHqQEm1Sgk3QfmL2SXnSxe/Y1XEYcuIVk2uD Bl1g== 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 l15-20020a170906794f00b007c0e0d9d1e9si5091543ejo.621.2022.12.05.12.04.20; Mon, 05 Dec 2022 12:04:44 -0800 (PST) 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 S232831AbiLES6h (ORCPT + 80 others); Mon, 5 Dec 2022 13:58:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232540AbiLES6g (ORCPT ); Mon, 5 Dec 2022 13:58:36 -0500 Received: from cloudserver094114.home.pl (cloudserver094114.home.pl [79.96.170.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9CB1634D; Mon, 5 Dec 2022 10:58:34 -0800 (PST) Received: from localhost (127.0.0.1) (HELO v370.home.net.pl) by /usr/run/smtp (/usr/run/postfix/private/idea_relay_lmtp) via UNIX with SMTP (IdeaSmtpServer 5.1.0) id 57dcb16a7ec5752c; Mon, 5 Dec 2022 19:58:33 +0100 Received: from kreacher.localnet (unknown [213.134.188.181]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by v370.home.net.pl (Postfix) with ESMTPSA id 55E792801EA8; Mon, 5 Dec 2022 19:58:32 +0100 (CET) Authentication-Results: v370.home.net.pl; dmarc=none (p=none dis=none) header.from=rjwysocki.net Authentication-Results: v370.home.net.pl; spf=fail smtp.mailfrom=rjwysocki.net From: "Rafael J. Wysocki" To: Linux ACPI Cc: LKML , Linux PM , Zhang Rui , Srinivas Pandruvada Subject: [PATCH] ACPI: processor: idle: Drop unnecessary statements and parens Date: Mon, 05 Dec 2022 19:58:25 +0100 Message-ID: <2262740.ElGaqSPkdT@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" X-CLIENT-IP: 213.134.188.181 X-CLIENT-HOSTNAME: 213.134.188.181 X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvhedrudeggdduudelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkfgggfgtsehtufertddttdejnecuhfhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqnecuggftrfgrthhtvghrnhepffffffekgfehheffleetieevfeefvefhleetjedvvdeijeejledvieehueevueffnecukfhppedvudefrddufeegrddukeekrddukedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvddufedrudefgedrudekkedrudekuddphhgvlhhopehkrhgvrggthhgvrhdrlhhotggrlhhnvghtpdhmrghilhhfrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqedpnhgspghrtghpthhtohephedprhgtphhtthhopehlihhnuhigqdgrtghpihesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhpmhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehruhhirdiihhgrnhhgsehinhhtvghlrdgtohhmpdhrtghpthhtohep shhrihhnihhvrghsrdhprghnughruhhvrggurgeslhhinhhugidrihhnthgvlhdrtghomh X-DCC--Metrics: v370.home.net.pl 1024; Body=5 Fuz1=5 Fuz2=5 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham 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 From: Rafael J. Wysocki Drop a redundant "else", a "return" statement at the end of a void function and redundant parentheses around an unsigent int variable name from the ACPI processor idle driver. No expected functional impact. Signed-off-by: Rafael J. Wysocki --- drivers/acpi/processor_idle.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) Index: linux-pm/drivers/acpi/processor_idle.c =================================================================== --- linux-pm.orig/drivers/acpi/processor_idle.c +++ linux-pm/drivers/acpi/processor_idle.c @@ -324,7 +324,7 @@ static void acpi_processor_power_verify_ * the erratum), but this is known to disrupt certain ISA * devices thus we take the conservative approach. */ - else if (errata.piix4.fdma) { + if (errata.piix4.fdma) { acpi_handle_debug(pr->handle, "C3 not supported on PIIX4 with Type-F DMA\n"); return; @@ -384,8 +384,6 @@ static void acpi_processor_power_verify_ * handle BM_RLD is to set it and leave it set. */ acpi_write_bit_register(ACPI_BITREG_BUS_MASTER_RLD, 1); - - return; } static int acpi_cst_latency_cmp(const void *a, const void *b) @@ -459,7 +457,7 @@ static int acpi_processor_power_verify(s lapic_timer_propagate_broadcast(pr); - return (working); + return working; } static int acpi_processor_get_cstate_info(struct acpi_processor *pr)