From patchwork Thu Apr 21 15:30:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yu Zhe X-Patchwork-Id: 12821846 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 15243C433EF for ; Thu, 21 Apr 2022 15:31:09 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 946C96B0072; Thu, 21 Apr 2022 11:31:08 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 8F5266B0073; Thu, 21 Apr 2022 11:31:08 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7BC936B0074; Thu, 21 Apr 2022 11:31:08 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.28]) by kanga.kvack.org (Postfix) with ESMTP id 6CB536B0072 for ; Thu, 21 Apr 2022 11:31:08 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 3D969274CF for ; Thu, 21 Apr 2022 15:31:08 +0000 (UTC) X-FDA: 79381274616.15.6E08410 Received: from ha.nfschina.com (mail.nfschina.com [124.16.136.209]) by imf27.hostedemail.com (Postfix) with ESMTP id 3068C4002B for ; Thu, 21 Apr 2022 15:31:05 +0000 (UTC) Received: from localhost (unknown [127.0.0.1]) by ha.nfschina.com (Postfix) with ESMTP id 91A241E80D0B; Thu, 21 Apr 2022 23:28:29 +0800 (CST) X-Virus-Scanned: amavisd-new at test.com Received: from ha.nfschina.com ([127.0.0.1]) by localhost (ha.nfschina.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SMWWhuIuyy2Z; Thu, 21 Apr 2022 23:28:27 +0800 (CST) Received: from ubuntu.localdomain (unknown [101.228.255.56]) (Authenticated sender: yuzhe@nfschina.com) by ha.nfschina.com (Postfix) with ESMTPA id AF6E51E80CF9; Thu, 21 Apr 2022 23:28:26 +0800 (CST) From: Yu Zhe To: sj@kernel.org, akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, liqiong@nfschina.com, Yu Zhe Subject: [PATCH] mm/damon: remove unnecessary type castings Date: Thu, 21 Apr 2022 08:30:56 -0700 Message-Id: <20220421153056.8474-1-yuzhe@nfschina.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam11 X-Rspamd-Queue-Id: 3068C4002B X-Stat-Signature: a4xz8tsinb7hgritw1fafrxc36nqrot8 Authentication-Results: imf27.hostedemail.com; dkim=none; dmarc=none; spf=none (imf27.hostedemail.com: domain of yuzhe@nfschina.com has no SPF policy when checking 124.16.136.209) smtp.mailfrom=yuzhe@nfschina.com X-HE-Tag: 1650555065-224459 X-Bogosity: Ham, tests=bogofilter, spamicity=0.038267, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: remove unnecessary void* type castings. Signed-off-by: Yu Zhe --- 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;