From patchwork Fri Nov 4 02:07:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li zeming X-Patchwork-Id: 15281 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp114886wru; Thu, 3 Nov 2022 19:09:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5+fkbKSOkJSncL+QpOpeUJu9uxAV7Cd2zji2DhrTwUYJ4Cvu5PUPldJYXw4WeoRy15qMdg X-Received: by 2002:a17:906:eeca:b0:730:6880:c398 with SMTP id wu10-20020a170906eeca00b007306880c398mr32491671ejb.706.1667527766290; Thu, 03 Nov 2022 19:09:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667527766; cv=none; d=google.com; s=arc-20160816; b=YOS14Gi8xou1gPSxfHw/df0SQ2Guly9BgvQSSbPNS21xIblSjqWOHZbbau9dXP9Lkt /GyqyePGyFdxIdhsenyaYD0Flkfl8ccXYNKEXaGJmCsWDk8TEKYzRNb00FKZeuM618fn hLkNY3ywLd8u++QdXz+WiGk+nfbDt1SNPUgX8NavfS0JFSbPkGoZ+rjTUAYIhWEQV/pg odIfrzA5d2Ze7zkA0KAOiH219BVtfpiYLE+bciVNneaMlI2liEkXlWNrTBfi9IUKH/bM haaOkp9wRMnYagAmUYZHy3VCHttcEBkeNvo7tLJ7YEq1kT3S2vPbogH2NHcyMSU7Usfr gvUg== 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 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.09.02; Thu, 03 Nov 2022 19:09:26 -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 + 99 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748529595101950277?= X-GMAIL-MSGID: =?utf-8?q?1748529595101950277?= 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)