From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1F6A0C4332F for ; Fri, 4 Nov 2022 02:08:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231490AbiKDCIW (ORCPT ); Thu, 3 Nov 2022 22:08:22 -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 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