From patchwork Fri Jun 9 18:20:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li zeming X-Patchwork-Id: 104788 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp606739vqr; Wed, 7 Jun 2023 18:55:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7iUucrgHjRo0dfTj5ni6Ay8rTgt6bxZAnt5HfMcU4NUcyAAA5WZYx29XffYYlf6iVqvKOl X-Received: by 2002:aca:1908:0:b0:398:1c55:82bd with SMTP id l8-20020aca1908000000b003981c5582bdmr6710410oii.45.1686189323807; Wed, 07 Jun 2023 18:55:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686189323; cv=none; d=google.com; s=arc-20160816; b=ME64BIMigwSNfQJFMPYACM/NqIPAGq4ruk06dRojn7/XDSOupXqeORkjHtRgNhLZKM HXWTlN9ekhICmO/NsAm65j6vf8szeM0oAcQ6rj7vV14Gn+m147qYtmAgzZENH+eZpexu LU8Rhg9hCspgxuo5Wa9YnYl+QVx/ExqVwTnYZY1pJwW2KErvxLrgGbiWEM2i7OuCgahC ArDIxHXHoEwHMl7HXPC7AL8YIE6v/0PVPDFlPilRpt34pu5AuTdBatcf//RPAVkkD73H +dCxMkV4rUHBMqMKkLApreEnw6r0Jwf6CeIVQpBdGOmmve7qulbIEHbXyTbDHdqHUIEZ 7siQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d2-20020a170902cec200b001b0732ccd7dsi261622plg.391.2023.06.07.18.55.06; Wed, 07 Jun 2023 18:55:23 -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 S232477AbjFHBtr (ORCPT + 99 others); Wed, 7 Jun 2023 21:49:47 -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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768097656087720593?= X-GMAIL-MSGID: =?utf-8?q?1768097656087720593?= 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)