Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5539530rwd; Sun, 18 Jun 2023 13:50:52 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6cnrACRKhKgoJeyilyXONS4wyt8YNcIOQAggyaAqtVIBOo5Ahb+ynk/HEnT8VMY2hfmq+v X-Received: by 2002:a05:6808:2a55:b0:39e:c4d7:655c with SMTP id fa21-20020a0568082a5500b0039ec4d7655cmr4583679oib.4.1687121452434; Sun, 18 Jun 2023 13:50:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687121452; cv=none; d=google.com; s=arc-20160816; b=crDFacK79rKIAAPNbzAsXSGNMhTugxGW4SM4sfMILq6lDk5O9O7xq1XQ2YAvSAvOA+ QmnP9tHzHztMZTYt3dBKzryrs7dyLoCFRyx3nHtZ6Vo7YogVpqdS6DelyrOGUz6wg3Cf EvlcdivESW+cn/6EV8cw7d97ZUg1Xo1a2QCTX21p+MstAVCNT8Z7GFJnzqKOkFc8QEY7 vq3xZ8zsjQr3k/JwiL1kTnw3c4mACkMVgkPXPMLSG0AJq1+Dy7xNwaVt+TruAM9oa/Ln XDlmlAc/xWamta37WQFcstNlh4+79zv28UIi10nEnVQ4b3bC0l0PcL0dKSkc5N2Hrk8x nVqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=bkMtBEsz/9x+JYJV7sYVmdSjjMNpn9H56vxMP6g8o7M=; b=aMpz1pgzsT90A5PE1u42xAAuWU4OxaHNP0ZlQvSZjYAdznKl90Rjhmi9ARogat7T5w PkqAwztQD+pKmn6JfsyQVhpDZryBs9stL7ii9m20jXC3XxZBq7qZ2DLWxWj/YTwODAUH aboVcxIA6mtWjnuKEiiWmjdKoy3w/ETP1syRthHOaKP4vtlAd8I0pGz9DF697jfRnvSx kKNUt4tctywZRtHnEv0f8scqTxOk+QxPv8URcz9cq8+b+YdyFdkf9zbScSECkEjzShav SdnFAE3S1/zbN6zSeySo7jPbvOM8KtqVM6DBVIsllU2boNcCk3/2vA8wD+U1YrjTRQnj mkbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=kVxfw3gt; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=g3i7VR8J; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kw16-20020a170902f91000b001b20e2ba8e1si4199018plb.23.2023.06.18.13.50.39; Sun, 18 Jun 2023 13:50:52 -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; dkim=pass header.i=@linutronix.de header.s=2020 header.b=kVxfw3gt; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=g3i7VR8J; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229630AbjFRUuI (ORCPT + 99 others); Sun, 18 Jun 2023 16:50:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229492AbjFRUt4 (ORCPT ); Sun, 18 Jun 2023 16:49:56 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0BEEE4D; Sun, 18 Jun 2023 13:49:55 -0700 (PDT) Date: Sun, 18 Jun 2023 20:49:53 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1687121394; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bkMtBEsz/9x+JYJV7sYVmdSjjMNpn9H56vxMP6g8o7M=; b=kVxfw3gtIxOAAo/D1IjSjiSMr+BnWsqLtAm5xGUbvi9wOqwX8aEYspK/KQqcyjPMy3VL8E 0Y+pFU2sVIvLi2RjfaeSoRuAjYETFNLy5+dc7GmoJZV02QqQrBY/Syh5ve8mQv3g7iRZ7c 2DbFSAWzoHDU3YgTuYtWAsWsdLEgYvpvlXtnsmquQ1vq6ClPgG6WoMcgsdjpaLRzzf63x7 ftO1UPVhjcSsTi0bZXCoCdXY8KLKsMKPGMmgk61ulAF1F6oObzAfJn+SFmWWU/y9NOz5F8 J5HiAg5MRq5e/JxilX2oywg62z8KQWdOL2lSU+vqU75mpzRW8CkDinzbiQ/e3g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1687121394; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bkMtBEsz/9x+JYJV7sYVmdSjjMNpn9H56vxMP6g8o7M=; b=g3i7VR8J65CsBvq5v3bBOcuLsueQMLdblFrpLuwoYQgn/KAHG2O3xUzql+3sWiRMUX6IR0 7UpBDWvetGqAImCw== From: "tip-bot2 for Li zeming" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/core] alarmtimer: Remove unnecessary (void *) cast Cc: Li zeming , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230609182059.4509-1-zeming@nfschina.com> References: <20230609182059.4509-1-zeming@nfschina.com> MIME-Version: 1.0 Message-ID: <168712139395.404.6449837644292312630.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the timers/core branch of tip: Commit-ID: fc4b4d96f793c827a5abf23df3e793592dbd38ce Gitweb: https://git.kernel.org/tip/fc4b4d96f793c827a5abf23df3e793592dbd38ce Author: Li zeming AuthorDate: Sat, 10 Jun 2023 02:20:59 +08:00 Committer: Thomas Gleixner CommitterDate: Sun, 18 Jun 2023 22:41:53 +02:00 alarmtimer: Remove unnecessary (void *) cast Pointers of type void * do not require a type cast when they are assigned to a real pointer. Signed-off-by: Li zeming Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/r/20230609182059.4509-1-zeming@nfschina.com --- 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 09c9cde..8d9f13d 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)