From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CC21CC3F68F for ; Wed, 11 Dec 2019 10:30:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id ACD742173E for ; Wed, 11 Dec 2019 10:30:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728909AbfLKKaw (ORCPT ); Wed, 11 Dec 2019 05:30:52 -0500 Received: from cloudserver094114.home.pl ([79.96.170.134]:64818 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728839AbfLKKaw (ORCPT ); Wed, 11 Dec 2019 05:30:52 -0500 Received: from 79.184.253.70.ipv4.supernova.orange.pl (79.184.253.70) (HELO kreacher.localnet) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83.320) id 020f6036a60aed17; Wed, 11 Dec 2019 11:30:50 +0100 From: "Rafael J. Wysocki" To: Linux PM Cc: LKML , Daniel Lezcano Subject: [PATCH] cpuidle: Drop unnecessary type cast in cpuidle_poll_time() Date: Wed, 11 Dec 2019 11:30:50 +0100 Message-ID: <9680649.eAqxiQ8Vpk@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rafael J. Wysocki The data type of the target_residency_ns field in struct cpuidle_state is u64, so it does not need to be cast into u64. Get read of the unnecessary type cast. Signed-off-by: Rafael J. Wysocki --- On top of the linux-next branch of linux-pm.git from today. --- drivers/cpuidle/cpuidle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-pm/drivers/cpuidle/cpuidle.c =================================================================== --- linux-pm.orig/drivers/cpuidle/cpuidle.c +++ linux-pm/drivers/cpuidle/cpuidle.c @@ -381,7 +381,7 @@ u64 cpuidle_poll_time(struct cpuidle_dri if (dev->states_usage[i].disable) continue; - limit_ns = (u64)drv->states[i].target_residency_ns; + limit_ns = drv->states[i].target_residency_ns; break; }