Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp53064rwd; Wed, 7 Jun 2023 19:12:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7l9Ucwe+Dx7lYREpAbyNIPCenMPX+rZcY6wGSUQHm4TThiG0C/ZO6nTA0ItrvUbFNTmSZj X-Received: by 2002:a05:6a00:1acc:b0:653:609:7e2b with SMTP id f12-20020a056a001acc00b0065306097e2bmr5138042pfv.2.1686190368057; Wed, 07 Jun 2023 19:12:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686190368; cv=none; d=google.com; s=arc-20160816; b=hEtYt4T85ZDtjSbwiWy1vTCTPRvszgYbWoQhcO9SXVox0tJL/NCTUre/xixYF0GEtZ jnohR+Jah9nm9Z5EvxkuMw6cvp4TNDsLfHOHF9+G6hPjykq+lsliaI5k3/gIa6HbiBHb oBBSZClcXPG+hXzCLS5yRBnvOareMStmuZWvGIG6v4IO8xSasBEYOVs0okeYttVIiBH/ 3jB02kEj+MC/VPnRbHps8OCeCz8AIR6Ika0OFYfp2S7bjIag8S1m7khmSwuf7V/DwrC5 5l6GLC4hIsozg3iFnHm1Gkrm63yRU7H1qg3qRFeEXcv219FcbgixwI28bVja1HxpCMDP b7LQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=jbLruKWqx4t2FFmGkD4nTh8dstSNZFeKcH1e3haWw1Q=; b=wCy5ub8wK0AIJcQ5Hua6K5vDYNYGMOFDyDLExpfJA7arormwzlnDJ4CXv4/fhhSlPS WP+t1zzorZU+qy0GLayPMZhcO72FbPRR5F1K0j79goJOh9/NJdM1J+NUrph42EqDW7wP d/8BKDUnTaJQnt+2X2zFAPMUOZkq2Y9GMYn9JAKgt1q0exPijnakqiO2MmNn7nhXpbLf fY0JQz0nMRp6eU+asgRezlukSPS9vAXEuRbXAAKJADydbR0R7O7x/LpsP/OVGitjz+kh t3Psk7SqrMivoHrEKf+OUzQwB/nVmcVHyKsOvfxlVzU+KV2D1O3ast/fp/8WUT0DIyyi 1hiw== 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 p22-20020a639516000000b0053439c1712esi173665pgd.713.2023.06.07.19.12.33; Wed, 07 Jun 2023 19:12:47 -0700 (PDT) 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 S232241AbjFHBtq (ORCPT + 99 others); Wed, 7 Jun 2023 21:49:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231302AbjFHBto (ORCPT ); Wed, 7 Jun 2023 21:49:44 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 7E669269F for ; Wed, 7 Jun 2023 18:49:42 -0700 (PDT) Received: from localhost.localdomain (unknown [219.141.250.2]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 31A1C1801128CB; Thu, 8 Jun 2023 09:49:40 +0800 (CST) X-MD-Sfrom: zeming@nfschina.com X-MD-SrcIP: 219.141.250.2 From: Li zeming To: tglx@linutronix.de, jstultz@google.com, sboyd@kernel.org Cc: linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] time: alarmtimer: remove unnecessary (void*) conversions Date: Sat, 10 Jun 2023 02:20:59 +0800 Message-Id: <20230609182059.4509-1-zeming@nfschina.com> X-Mailer: git-send-email 2.18.2 X-Spam-Status: No, score=4.3 required=5.0 tests=BAYES_00,DATE_IN_FUTURE_24_48, RCVD_IN_SBL_CSS,RDNS_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: **** 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 Pointer variables of void * type do not require type cast. Signed-off-by: Li zeming --- kernel/time/alarmtimer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/time/alarmtimer.c b/kernel/time/alarmtimer.c index e918d556dd51..65c20c4f0b7f 100644 --- a/kernel/time/alarmtimer.c +++ b/kernel/time/alarmtimer.c @@ -751,7 +751,7 @@ static int alarm_timer_create(struct k_itimer *new_timer) static enum alarmtimer_restart alarmtimer_nsleep_wakeup(struct alarm *alarm, ktime_t now) { - struct task_struct *task = (struct task_struct *)alarm->data; + struct task_struct *task = alarm->data; alarm->data = NULL; if (task) -- 2.18.2