Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3345639rwd; Sat, 10 Jun 2023 06:10:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4ARb/lXQXCvQkTcYzQiMC++G8J3B6PWPelk9TmS6+SB8QY1FITAgLb4B6lnFdm2CyqqLAa X-Received: by 2002:a17:906:dc92:b0:94f:3980:bf91 with SMTP id cs18-20020a170906dc9200b0094f3980bf91mr5777620ejc.19.1686402628470; Sat, 10 Jun 2023 06:10:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686402628; cv=none; d=google.com; s=arc-20160816; b=XatKE0GvSHSztlXf3yvo4pA+u2ZLK+e5rEy/Cui/xbPHu6/jNkfNebbcjb6JEcYpRs DHPbUWbW1ZVUx3CFVL6EQVvGsoIskA0G4OseysjWCKfCj+EfP5xwgQT9X4Qtdxu4VLNJ d1k4t4GckzM/gW5qdOU9XR4YUNnOKcEsnQgqcGIUAL+fNn0K6JtiWrJYal+DAdBn+7EM Y9cpO3F8B7AAIJTIQC8pkjV+DcN1Nm/tmaIy6SWRCK3wJtKreEylGeNMTBeX1TKTN4uV PAi66Zesc4fdg6XkU5y0PjmYHYt1J9BNBZAZ9hj11dqOH3It+X7h1w/CPMFNJCjabV0T xdlw== 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=bEzxubQcnLZoG0m9coTklTKk4G+HNneq9lcmAgnyAkI=; b=qzEqihuweTwx6gG1ENskqqDWals/pqhjeSrqVQ35KbVSvp2nC7gs+9ufh+q/egnqxF oRzLeKoPcflEjAqy2212HVxOkr0HXzvjKra+lbl6lzVQJovwg3Mipzfbv+7jQT//pVO8 FgAa9sZId7x+73rzW3Gv//actzWZX8+xvWJRC1731g1dA1/t0ZezON3yHbkH2U2lZklG MXmtrSPZLTs4ZZtOlYVnOh6DQi1KTPogWB+SFK5okI87LPkhWAiAtCtgHus4E3vGNfTW Zn25m1z9a0gE9mbtHQDzol67s3Al7gK9BFGx0/HyTckt6UcWNa1wfw9g8W+4NtJXLoHd AcAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=YZXtKb6h; dkim=neutral (no key) header.i=@linutronix.de header.b=JmI8KGUh; 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 ay18-20020a170906d29200b0094f34ed62d2si2879136ejb.366.2023.06.10.06.10.00; Sat, 10 Jun 2023 06:10:28 -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=YZXtKb6h; dkim=neutral (no key) header.i=@linutronix.de header.b=JmI8KGUh; 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 S231594AbjFJMpi (ORCPT + 99 others); Sat, 10 Jun 2023 08:45:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230403AbjFJMpd (ORCPT ); Sat, 10 Jun 2023 08:45:33 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 567FE35B8; Sat, 10 Jun 2023 05:45:32 -0700 (PDT) Date: Sat, 10 Jun 2023 12:45:30 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1686401130; 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=bEzxubQcnLZoG0m9coTklTKk4G+HNneq9lcmAgnyAkI=; b=YZXtKb6hDLOPspLe39n+5awamNUWNAgrOUEtGHdClzzkePjpqKc8esCYe8aptUqjXggnZ2 jA70ULyI7ag5O94okQvgvXaF6X+85bzynm77X+NxugldWkhSO0LgqOJi4zsNRQwkj36ENh yyPBFYj4lzwFlNGQg+DEKBdngdE41gUXKXKYtL9LyVSX43DVsZ9qUUrzJsi1kNlyOGBB0H OxcJwlMAQVrK2pn2TQMrkkRMOFwDy+28hTd3AdgVnaiwmcNkgQ8iLc15RlBUIOI2UzzpOg zNTpsdaT3hTwT+5VibOFK7tDzZ/j1j8pza9jQ4Tkj6t3EgzIJOdf2OOSvt1a3g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1686401130; 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=bEzxubQcnLZoG0m9coTklTKk4G+HNneq9lcmAgnyAkI=; b=JmI8KGUhV2NpzYtEvUtDKaMSEE/+2ewN3BGzVkSCjEHBHtKklWCH5aIOj9vgv0asotATW9 hatTfgiqvkg2PyBA== 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: <168640113003.404.3362295823712498263.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,URIBL_BLOCKED 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: f319c99c701853dd41c01209855790da288e38ab Gitweb: https://git.kernel.org/tip/f319c99c701853dd41c01209855790da288e38ab Author: Li zeming AuthorDate: Sat, 10 Jun 2023 02:20:59 +08:00 Committer: Thomas Gleixner CommitterDate: Sat, 10 Jun 2023 14:36:17 +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)