linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm/damon: remove unnecessary type castings
@ 2022-04-21 15:30 Yu Zhe
  0 siblings, 0 replies; only message in thread
From: Yu Zhe @ 2022-04-21 15:30 UTC (permalink / raw)
  To: sj, akpm; +Cc: linux-mm, linux-kernel, liqiong, Yu Zhe

remove unnecessary void* type castings.

Signed-off-by: Yu Zhe <yuzhe@nfschina.com>
---
 mm/damon/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/damon/core.c b/mm/damon/core.c
index 5ce8d7c867f0..5fe42e47c57b 100644
--- a/mm/damon/core.c
+++ b/mm/damon/core.c
@@ -1042,7 +1042,7 @@ static int kdamond_wait_activation(struct damon_ctx *ctx)
  */
 static int kdamond_fn(void *data)
 {
-	struct damon_ctx *ctx = (struct damon_ctx *)data;
+	struct damon_ctx *ctx = data;
 	struct damon_target *t;
 	struct damon_region *r, *next;
 	unsigned int max_nr_accesses = 0;
-- 
2.25.1



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-21 15:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-21 15:30 [PATCH] mm/damon: remove unnecessary type castings Yu Zhe

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