Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp26672rwl; Thu, 3 Nov 2022 19:10:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5Eq4AUWBveHn25GuLe6GTYkbdQqnTBstP7TrPW6+yTvjWHdct3q/P7CH+LpG1HpeYTW+7D X-Received: by 2002:a05:6402:4444:b0:458:f355:ce04 with SMTP id o4-20020a056402444400b00458f355ce04mr34085678edb.422.1667527840938; Thu, 03 Nov 2022 19:10:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667527840; cv=none; d=google.com; s=arc-20160816; b=haoMcaoed5w/Hi8reFULTO/6AkuZELmx0q4ikWU6ithnnVVz7yeRvy1hwPlpVHeqE0 hGqBe8SW3QmPeYtO4UExtNV+P+yJzSSyafTCK9UHb5YedPvT1oREnzAPFgS2S8qYNz/H ZyVUDvXXi6wevGfeKyPuW6SRe2mBohAR/DFbWPkkS4nUkS3s57QBIOzYBI72QM5pHtgO Xn8AliLPTtDWob3UaqAjbpqVl434Rh0eFpxiAZndQMavGf7qDxhIIFoh1TT/hQ63gJnw RzmLKjVGxTE74n/Z0rzdr2v0VHOgnsIZS4y/TCIfjx8QP9bEJPSrsCRt8TZDIv/7Xm7+ PN8w== 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=XgZ1zQ7VIuXwE1YA1EPRMaGSlL3QuoH9H0L/iz9oheE=; b=PxG9bmAKD0wJNMIMZtPWO+vqbEXR8xQqyqvj7AWdF32xknhr4FZofc59HHOGVQlgWA V2rOYprfiirVKYFIz//nzGoLZHc1EpCtcux195xyEDQDVBec5pQUI/BwGXD7HkOcI7N1 4/bqd5cMDm4V8qnBIC31rOeW7s4nq2E77lzMbuODNLz7SU2+GHtWQXsGGG/FzzBpI1Wj fKV7TSSxVOSBJmyydIh00tQUMosot9tneEh9fo9c6wjk2NF++8b2nCuSdKdZz201XhVa kWczS3ZVBpqarTVAT7sXU+Ec1LN4ufnk6Wgqgiq5iMbKecmwcsgPnhW95lfhX8H1MSQS cY+Q== 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 v26-20020aa7d65a000000b004615b657cbcsi2705039edr.190.2022.11.03.19.10.17; Thu, 03 Nov 2022 19:10: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 S231417AbiKDCIU (ORCPT + 97 others); Thu, 3 Nov 2022 22:08:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231406AbiKDCIC (ORCPT ); Thu, 3 Nov 2022 22:08:02 -0400 Received: from mail.nfschina.com (unknown [124.16.136.209]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4E2AA248C0 for ; Thu, 3 Nov 2022 19:07:36 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id 635BF1E80D9E; Fri, 4 Nov 2022 10:05:29 +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 2Z_EK_SliSgh; Fri, 4 Nov 2022 10:05:26 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: zeming@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id 817801E80D9D; Fri, 4 Nov 2022 10:05:26 +0800 (CST) From: Li zeming To: akpm@linux-foundation.org, ddiss@suse.de, brauner@kernel.org, rppt@kernel.org, mwilck@suse.com, ebiederm@xmission.com Cc: linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] initramfs: Remove unnecessary (void*) conversions Date: Fri, 4 Nov 2022 10:07:26 +0800 Message-Id: <20221104020726.3413-1-zeming@nfschina.com> X-Mailer: git-send-email 2.18.2 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE 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 bufv pointer does not need to cast the type. Signed-off-by: Li zeming --- init/initramfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/initramfs.c b/init/initramfs.c index 18229cfe8906..3dbd0012eb3b 100644 --- a/init/initramfs.c +++ b/init/initramfs.c @@ -461,7 +461,7 @@ static long __init write_buffer(char *buf, unsigned long len) static long __init flush_buffer(void *bufv, unsigned long len) { - char *buf = (char *) bufv; + char *buf = bufv; long written; long origLen = len; if (message) -- 2.18.2