Message ID | 1921559.PYKUYFuaPT@kreacher |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2348848wrn; Mon, 30 Jan 2023 11:09:53 -0800 (PST) X-Google-Smtp-Source: AK7set9ujGHGgTBLf4j9q0ZEqSeHhrUYRVgkX1X5VVbPA8+lHBqRZi08xb5ol9cBVxCiKmD2cuGt X-Received: by 2002:a62:1d55:0:b0:592:4d85:ecb1 with SMTP id d82-20020a621d55000000b005924d85ecb1mr14745432pfd.33.1675105793264; Mon, 30 Jan 2023 11:09:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675105793; cv=none; d=google.com; s=arc-20160816; b=ByQM6+BhmGOmZTI9qZ000VlHPmXntkxQ4fcTmEvUIblv5DJ0J4oRGkDyM8TQFVH8nT 2kV7BiuyViRaVOx9i3hwENtlVkShUGF/7WV0rWXK8aWxC5vYygggHVgMuezDCJWY21ba udrU21XCyzjTXcOw8CUM1ZmcwGi8OqamJNFaNtj6KaRWGWDmyaj3/WUlHQpw0Cp3MPOA 3T5l+17xBrKqr6XhEeSF+x5FsywAA7JKrhzs6beaYQQ//juck2+6cN3zlTCBH2ok+pnP CfLkwdMzCpXnpUlY9AY6ZO8CH3kqQu9VLs9j3/tD+CXPqWo5qim5Q5Ld/CFe+Du5rr+t pQRg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=sDGy9jUGuMfCB2uhubUW4dDrrwzrtGNav52ldpTRyM8=; b=PBHozRALveN2ppo+kTX+S0uvmeAy7Ici33vXhiG2g9GGgXmFEFi1Ws4/842zdf9kq+ wli1URKlrH/uQjTprtCjGN8LsnbKTwAUIJldX4L71pyLueRv4D3xHULwtrMZK+Q+xE88 0yJcuAtyNaWge9l86gwSyjW5YJGrut/K5zzEEGOhtvRJ7YpzulYxJ63DoJlWd6dAxFtH zGYkN8xNtui437xT0gJqSr/zWF4uidxgbcHruAIl78ftkWTHlUDG4DDZR9PGfC8a5K7q VjuoMu9BSjTLqzaJkL94dqbMgHmXJjNUYd5PzdOtKj5TaMVuywmn5/fDesWF9svJ9Pwb DsGQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j16-20020a056a00175000b0058e2403f011si13417810pfc.56.2023.01.30.11.09.40; Mon, 30 Jan 2023 11:09:53 -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 S237527AbjA3SsJ (ORCPT <rfc822;maxin.john@gmail.com> + 99 others); Mon, 30 Jan 2023 13:48:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236842AbjA3SsE (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 30 Jan 2023 13:48:04 -0500 Received: from cloudserver094114.home.pl (cloudserver094114.home.pl [79.96.170.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5AE10196A0; Mon, 30 Jan 2023 10:47:58 -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 d815d95774922b1d; Mon, 30 Jan 2023 19:47:56 +0100 Received: from kreacher.localnet (unknown [213.134.169.112]) (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 C8F4C25258B8; Mon, 30 Jan 2023 19:47:55 +0100 (CET) From: "Rafael J. Wysocki" <rjw@rjwysocki.net> To: Linux PM <linux-pm@vger.kernel.org> Cc: Linux ACPI <linux-acpi@vger.kernel.org>, LKML <linux-kernel@vger.kernel.org>, Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>, Zhang Rui <rui.zhang@intel.com>, Daniel Lezcano <daniel.lezcano@linaro.org> Subject: [PATCH v2 3/4] thermal: intel: int340x: Drop pointless cast to unsigned long Date: Mon, 30 Jan 2023 19:45:17 +0100 Message-ID: <1921559.PYKUYFuaPT@kreacher> In-Reply-To: <2133431.irdbgypaU6@kreacher> References: <2133431.irdbgypaU6@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" X-CLIENT-IP: 213.134.169.112 X-CLIENT-HOSTNAME: 213.134.169.112 X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvhedrudefvddguddulecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfjqffogffrnfdpggftiffpkfenuceurghilhhouhhtmecuudehtdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvvefufffkjghfggfgtgesthfuredttddtjeenucfhrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqeenucggtffrrghtthgvrhhnpedvffeuiedtgfdvtddugeeujedtffetteegfeekffdvfedttddtuefhgeefvdejhfenucfkphepvddufedrudefgedrudeiledrudduvdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvudefrddufeegrdduieelrdduuddvpdhhvghlohepkhhrvggrtghhvghrrdhlohgtrghlnhgvthdpmhgrihhlfhhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqpdhnsggprhgtphhtthhopeeipdhrtghpthhtoheplhhinhhugidqphhmsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqrggtphhisehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtohepshhrihhnihhvrghsrdhprghnughruhhvrggurgeslhhinhhu gidrihhnthgvlhdrtghomhdprhgtphhtthhopehruhhirdiihhgrnhhgsehinhhtvghlrdgtohhmpdhrtghpthhtohepuggrnhhivghlrdhlvgiitggrnhhosehlihhnrghrohdrohhrgh X-DCC--Metrics: v370.home.net.pl 1024; Body=6 Fuz1=6 Fuz2=6 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756475732207337221?= X-GMAIL-MSGID: =?utf-8?q?1756475732207337221?= |
Series |
thermal: intel: int340x: Assorted cleanups
|
|
Commit Message
Rafael J. Wysocki
Jan. 30, 2023, 6:45 p.m. UTC
From: Rafael J. Wysocki <rafael.j.wysocki@intel.com> The explicit casting from int to unsigned long in int340x_thermal_get_zone_temp() is pointless, becuase the multiplication result is cast back to int by the assignment in the same statement, so drop it. No expected functional impact. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> --- v1 -> v2: * It was [6/6] in v1 * Rebase --- drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 30/01/2023 19:45, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki <rafael.j.wysocki@intel.com> > > The explicit casting from int to unsigned long in > int340x_thermal_get_zone_temp() is pointless, becuase the multiplication > result is cast back to int by the assignment in the same statement, so > drop it. > > No expected functional impact. > > Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> > --- Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Index: linux-pm/drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c =================================================================== --- linux-pm.orig/drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c +++ linux-pm/drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c @@ -29,7 +29,7 @@ static int int340x_thermal_get_zone_temp if (conv_temp < 0) return conv_temp; - *temp = (unsigned long)conv_temp * 10; + *temp = conv_temp * 10; } else { /* _TMP returns the temperature in tenths of degrees Kelvin */ *temp = deci_kelvin_to_millicelsius(tmp);