Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp5707292rwb; Tue, 9 Aug 2022 02:43:40 -0700 (PDT) X-Google-Smtp-Source: AA6agR5F8Kc/fWOjJ1V4BQNNwXewaNIHqMp35yUPZb6DRq2TXNQkwuHpVAcBBQZTXe59GwMUS0Jx X-Received: by 2002:a05:6a00:2446:b0:528:5f22:5b6f with SMTP id d6-20020a056a00244600b005285f225b6fmr22649314pfj.73.1660038220178; Tue, 09 Aug 2022 02:43:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660038220; cv=none; d=google.com; s=arc-20160816; b=YofOJK9rkkz9bE4U+Q8THyYpiSQkCma4YlEIPMOH1YeVlOj2SMHT6pd4HHIB+qgdcK yiNMzgidhTSlZQyUqYShciY3tQEzJlBNYMaca3WI3VXYIn1zdmd4pts+1hSzffdGCiao nuDwP4OYc1+WXYvy/zVTzaaSEH6sZ6+nJpZHMyssZN6kCH9aNI9tI/V6qUXDnlVKwiza LV0qdAAJclNk65RKYAI0CKtT/+lf0oAV3AldM4M176aPwGGd4+XIkYi4zk2LUwlTQGiN Nsq5Lq1847x4YclydSq1joWafz/rBcPBI4WHrCerVzH2WZmXCpt8jzhqsNwHZgJqV+6q YC9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=kVaJQ+CHUapYJ2ojA1SdkLEWnZXX2AGx2wkdyafAbmU=; b=ZNe/4y3DmmeL3yttC7QQHP8ZVSlLk1/YswQuHxucjVjkkst/wC97Ik7lWiW9tNHhlx 9r/RmfCmvc7p4VHgG+JIl2ymSk86b1ki8KiIG7i5eGrxVY6/LfZYaY14ugHDSDTE6YPN HAWUF4/KN+3WZroCp2BeYFUZTL/Hqpz4uTxoe2vljS/33xOyIPRLjvswJvq+82zEbCAI VLCZK2/Bgs4Uy/sLR2mjZ7a5GeCqRyVQU7td+155SVLdVQL2fd9wRV17y28yLe3SfESo YSXjNZvwOXOK09bH9O1mxYm08XVekSMxyQGnXzZdExRzZM8cHC7DopGTi0xS8fCVnv46 Anqg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r12-20020a17090aa08c00b001f72e6dbd0dsi587579pjp.96.2022.08.09.02.43.26; Tue, 09 Aug 2022 02:43:40 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240297AbiHIJXR (ORCPT + 99 others); Tue, 9 Aug 2022 05:23:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234639AbiHIJXQ (ORCPT ); Tue, 9 Aug 2022 05:23:16 -0400 Received: from mail.nfschina.com (unknown [IPv6:2400:dd01:100f:2:72e2:84ff:fe10:5f45]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B6293B48E for ; Tue, 9 Aug 2022 02:23:15 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id 3B2611E80D95; Tue, 9 Aug 2022 17:21:30 +0800 (CST) X-Virus-Scanned: amavisd-new at test.com Received: from mail.nfschina.com ([127.0.0.1]) by localhost (mail.nfschina.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id f-ePpt-1Iq8Y; Tue, 9 Aug 2022 17:21:27 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: chuanjian@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id 7F9431E80D70; Tue, 9 Aug 2022 17:21:27 +0800 (CST) From: Dong Chuanjian To: agk@redhat.com, snitzer@kernel.org, dm-devel@redhat.com Cc: linux-kernel@vger.kernel.org, kernel@nfschina.com, Dong Chuanjian Subject: [PATCH] drivers/md/dm-kcopyd.c: remove unnecessary (void*) conversions Date: Tue, 9 Aug 2022 17:23:10 +0800 Message-Id: <20220809092310.5603-1-chuanjian@nfschina.com> X-Mailer: git-send-email 2.18.2 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 remove unnecessary void* type casting Signed-off-by: Dong Chuanjian diff --git a/drivers/md/dm-kcopyd.c b/drivers/md/dm-kcopyd.c index 4d3bbbea2e9a..65ed3e574c7e 100644 --- a/drivers/md/dm-kcopyd.c +++ b/drivers/md/dm-kcopyd.c @@ -513,7 +513,7 @@ static int run_complete_job(struct kcopyd_job *job) static void complete_io(unsigned long error, void *context) { - struct kcopyd_job *job = (struct kcopyd_job *) context; + struct kcopyd_job *job = context; struct dm_kcopyd_client *kc = job->kc; io_job_finish(kc->throttle); @@ -689,7 +689,7 @@ static void segment_complete(int read_err, unsigned long write_err, /* FIXME: tidy this function */ sector_t progress = 0; sector_t count = 0; - struct kcopyd_job *sub_job = (struct kcopyd_job *) context; + struct kcopyd_job *sub_job = context; struct kcopyd_job *job = sub_job->master_job; struct dm_kcopyd_client *kc = job->kc; -- 2.18.2