From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8FAA548EBCA for ; Thu, 23 Jul 2026 18:47:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784832455; cv=none; b=QlwyxfRkPjYrI2YDUnzWchhbgwwNrPVKZgUSzRpTjeEgXsfkj2zdy8v6ikb99sLJpkNqIu+4nyi9Xe98vy14mYA/iNKvYB8sv4dl56XNypCAt8wRWaGvw27tMngK2G3JesaNI3XMgTFYLlLC5s2ZZeC6GlJ8t/lE7KX0218u8Bk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784832455; c=relaxed/simple; bh=8A2S62PZzrC8JPpHbdE/IFoS+mlqyAjg7X22tpKj+Os=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=H7JNSuLKqI7C/O1qHzkgmvjSP3qb0XjEyrB8/A1OPMuiVWBKu0LSgBNs1HAjv91lFAbGsl7r3aW9+foqFTdSWsxij/oA6X9ieb04+P9JSkFlUVcxaCXqAF38Hf3ekQ6TGPPYlbep68/SXvriTlZGZwPvB9GCjLwLkczZFJbAkRg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ZLv7KMdK; arc=none smtp.client-ip=209.85.216.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ZLv7KMdK" Received: by mail-pj1-f48.google.com with SMTP id 98e67ed59e1d1-38e071ed6aeso808585a91.0 for ; Thu, 23 Jul 2026 11:47:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784832443; x=1785437243; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=y+eSaDxt3Oy3svRwCwnnMubzPU6lsf5Q8Wmnj1h35P0=; b=ZLv7KMdKbwdFR79zu/nnXxy3rl4fzgknndDl24jFVOROdLtJnGHusGmd0mbUGV14Vi X2hY8EoYIRI1RUVVima9X0/V/lzNEC0E6NfVTjcFt9wfN9j5A6cC56Hfnd3STA2XvTFl NS8h8Emkbj++rYbSu3CuhjymZQ1t50zCi3bJdyaqcgmTVvNMLhLQX4sxAnwAQXMobU6A ET4sDccUJ32njKrzcgEtIvKOjwDhd1xzwTDe0HBVJiI3yc0CJGrkvdJFYTQ8Mtikofc0 W/UXneWCd0oNpmlUALy8TLacJohYWozfpTHD+CaQIEgf0xjLDLvns69PqFFW+Pf+hi70 bdMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784832443; x=1785437243; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=y+eSaDxt3Oy3svRwCwnnMubzPU6lsf5Q8Wmnj1h35P0=; b=djTvvC9Oc/8gsAYdhA93hOFKYknFsggHeb8AvoZ6+s4pO4KMTa0gdhJK6LyBcG7oTE 4HCtGPjjn1BQK8wcsGtL3Y5EnQeLa8h+dWTJ9yANdbnvDpzvI+tgqUcVvX1QSTl+NXyz jJcP5s1w7vYNdPGizTAc1R18CdsZXKBl0lpYnPGLJLk2+Bp5yeGDrSpXXrRWn/H5pHDX TKA48e4ZqBLxv8Mjk7TT706NqhgLfiRgJe4bSZLDBrhrTZYyRffnlYHtYVcW1l3AdX+f uiP7LoyyvxPdd5rHPdP2Plt7KgmL33HBM3khB91ZPwLfey7631pZK6lZPQZ1ZOR5Fk+r ocbg== X-Forwarded-Encrypted: i=1; AHgh+RpCKP34+z0JrX7CkLyhSeXmmR2WkWg06OvsLv9ODt2gmFNnXSXBi1fZRyxFg0tiqqNUwhQNOSO90e85IDA=@vger.kernel.org X-Gm-Message-State: AOJu0YzbljuYXTZ1CUQx/MaWgSHUHO3Rfjg4bek5ClS09LLvxTaALyVA lUTFoM8RleLWmlfb+/BB6CAwgCvK9EO8kQFeypNFCxZ7YLSz4DuOgW9Y X-Gm-Gg: AR+sD10HAYGP5AzylEcwyDveLHEZo82dvG+iFzhET80fHZAN7dDeooEQi5lzGO6SvPz bVaUwiFl5yMPmPxTOcOdPkPgZvtjZmYjKS9oxdA8huQttBeWPqdM8TQ5Mh/VWwGmHnPeX2z7GE5 ZNMNKjG5gZS9SlqtDBOqf/7POJeiAv44MaCfa1hW20JFfvqlA8bILOikxWIcV7Z4dwg32l2xqu5 vXwP4PYqEOBhav7t4z0U+Np5hxTxaJnAvLOAA3FR4yc2Hu7YEmct8KBPeIgmIokClQhbX6Lc4qK Ol7O0Vh4pNehNNNK64GaU+OYmArFYnlb92VsLeJthHDCZFIWbQ13Va3d+O/55SDMlM2mjTQrUY8 /QBy7M9Vu48S8gCet1Fa9CkQt5p+CT05zrfEFqjxd4MN8JITROxd7Ve6mXDTRMb+dFThIGF+T X-Received: by 2002:a17:90b:3d43:b0:38d:dc13:6f94 with SMTP id 98e67ed59e1d1-38ec6649d4fmr4940781a91.37.1784832443347; Thu, 23 Jul 2026 11:47:23 -0700 (PDT) Received: from ubuntu.. ([110.9.142.4]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-38f03af8a45sm308155a91.10.2026.07.23.11.47.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jul 2026 11:47:22 -0700 (PDT) From: Sang-Heon Jeon To: Julia.Lawall@inria.fr, Thomas Renninger , Shuah Khan , "John B. Wyatt IV" , John Kacur Cc: cocci@inria.fr, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH 35/36] cpupower: remove conditional return with no effect Date: Fri, 24 Jul 2026 03:45:37 +0900 Message-ID: <20260723184538.3888637-36-ekffu200098@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260723184538.3888637-1-ekffu200098@gmail.com> References: <20260723184538.3888637-1-ekffu200098@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Both branches of the check return the same value, so the check has no effect. Remove it and return the value directly. This is the result of running the Coccinelle script from scripts/coccinelle/misc/cond_return_no_effect.cocci. Signed-off-by: Sang-Heon Jeon --- tools/power/cpupower/utils/powercap-info.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/power/cpupower/utils/powercap-info.c b/tools/power/cpupower/utils/powercap-info.c index e53033488218..88a5edb76315 100644 --- a/tools/power/cpupower/utils/powercap-info.c +++ b/tools/power/cpupower/utils/powercap-info.c @@ -47,8 +47,6 @@ static int powercap_print_one_zone(struct powercap_zone *zone) printf("\n"); - if (ret != 0) - return ret; return ret; } -- 2.43.0