mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] time: alarmtimer: remove unnecessary (void*) conversions
@ 2023-06-09 18:20 Li zeming
  2023-06-10 12:45 ` [tip: timers/core] alarmtimer: Remove unnecessary (void *) cast tip-bot2 for Li zeming
  2023-06-18 20:49 ` tip-bot2 for Li zeming
  0 siblings, 2 replies; 3+ messages in thread
From: Li zeming @ 2023-06-09 18:20 UTC (permalink / raw)
  To: tglx, jstultz, sboyd; +Cc: linux-kernel, Li zeming

Pointer variables of void * type do not require type cast.

Signed-off-by: Li zeming <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 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [tip: timers/core] alarmtimer: Remove unnecessary (void *) cast
  2023-06-09 18:20 [PATCH] time: alarmtimer: remove unnecessary (void*) conversions Li zeming
@ 2023-06-10 12:45 ` tip-bot2 for Li zeming
  2023-06-18 20:49 ` tip-bot2 for Li zeming
  1 sibling, 0 replies; 3+ messages in thread
From: tip-bot2 for Li zeming @ 2023-06-10 12:45 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: Li zeming, Thomas Gleixner, x86, linux-kernel

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 <zeming@nfschina.com>
AuthorDate:    Sat, 10 Jun 2023 02:20:59 +08:00
Committer:     Thomas Gleixner <tglx@linutronix.de>
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 <zeming@nfschina.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
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)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [tip: timers/core] alarmtimer: Remove unnecessary (void *) cast
  2023-06-09 18:20 [PATCH] time: alarmtimer: remove unnecessary (void*) conversions Li zeming
  2023-06-10 12:45 ` [tip: timers/core] alarmtimer: Remove unnecessary (void *) cast tip-bot2 for Li zeming
@ 2023-06-18 20:49 ` tip-bot2 for Li zeming
  1 sibling, 0 replies; 3+ messages in thread
From: tip-bot2 for Li zeming @ 2023-06-18 20:49 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: Li zeming, Thomas Gleixner, x86, linux-kernel

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 <zeming@nfschina.com>
AuthorDate:    Sat, 10 Jun 2023 02:20:59 +08:00
Committer:     Thomas Gleixner <tglx@linutronix.de>
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 <zeming@nfschina.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
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)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-06-18 20:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-09 18:20 [PATCH] time: alarmtimer: remove unnecessary (void*) conversions Li zeming
2023-06-10 12:45 ` [tip: timers/core] alarmtimer: Remove unnecessary (void *) cast tip-bot2 for Li zeming
2023-06-18 20:49 ` tip-bot2 for Li zeming

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®