Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp787328rwi; Wed, 2 Nov 2022 18:54:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4mqtQ85iYFvAeInsC0FUoEmjU0KSc/RoFfWumPXjKBzmEVss3B4d0ugMeJp864y9tozkIS X-Received: by 2002:a17:90a:e297:b0:212:dc30:7fed with SMTP id d23-20020a17090ae29700b00212dc307fedmr46897346pjz.90.1667440459168; Wed, 02 Nov 2022 18:54:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667440459; cv=none; d=google.com; s=arc-20160816; b=ys/3zfJVFb9BP+0Wxa2hDv7e7deyJjSWFr38iBXlaxx8EcN5Ullqm8H9uzYPuy03M2 OvDBnVUO8OgU0dUICtqF8eVl0cCsF/LwrzHI6zKPsN3qQzxqNI4QzpU+b81Y4bYx0+2k TI7mUQnL2woHC+IbH7O+WYGBj373guK6wYOyxZKetlewDPKdHIoL4wiyDEk2E7XRtU0k zFHUlJ948rUfuGSv43YqbMgItXfX4RSP/hjKLgZmDrDXrvk9l5CN8rpq/V5cJncqNHfF 5yXpATTiNLUgzsyuO4pHGoMrfrEmCF5mmSu5WkBCIBlrpKjl55scyp4Bp9dIE59R3ucx t/lw== 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=TJVP/INg0dAge77Tr9cV8pMCB6q5uaRh+Tw3NV8nI04=; b=QRg+oi1403MITSLoQD0W24sZXSkM2iBP2XECxQouKyNhndRhJHdJcdcNAXF4yBVDB+ eP9trbqlbfX7ML/p0II0AwxTHYmSiqqYZ4fj6IcfOGmpu4pd7EY2VEJwOPzvCP5QYimc +H8gLxHrocrPQPhab3/NmfxUkqyu6g9F+SBZEl3NXqbgCfNsCzdFfm3ZNiTYyTmwHpCs qgr9qTp0ONVZKP2e2B6a/DO0Zn8i7aXEQQUyN4Qpg7Sq8UZkVI7U0snm3TddVVQIoY58 dwJ130T407VWXVYkulH5NaoyR8AJNoXeD78/7XgZRwd//OlrUlQ2J0TKSd65gUD74M2p KNoA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-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 i9-20020a17090332c900b00186893023a0si20828404plr.101.2022.11.02.18.53.54; Wed, 02 Nov 2022 18:54:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-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-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229561AbiKCBfX (ORCPT + 99 others); Wed, 2 Nov 2022 21:35:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbiKCBfW (ORCPT ); Wed, 2 Nov 2022 21:35:22 -0400 Received: from mail.nfschina.com (unknown [124.16.136.209]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E72EA60FF; Wed, 2 Nov 2022 18:35:21 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id 550361E80D1A; Thu, 3 Nov 2022 09:33:19 +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 HAREzzNqmZJH; Thu, 3 Nov 2022 09:33:16 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: zeming@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id 8E2B81E80CEE; Thu, 3 Nov 2022 09:33:16 +0800 (CST) From: Li zeming To: chuck.lever@oracle.com, jlayton@kernel.org, trond.myklebust@hammerspace.com, anna@kernel.org Cc: linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] sunrpc: svc: Remove unnecessary (void*) conversions Date: Thu, 3 Nov 2022 09:35:10 +0800 Message-Id: <20221103013510.3062-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-nfs@vger.kernel.org The iov_base pointer does not need to cast the type. Signed-off-by: Li zeming --- include/linux/sunrpc/svc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/sunrpc/svc.h b/include/linux/sunrpc/svc.h index daecb009c05b..4b0eead91c94 100644 --- a/include/linux/sunrpc/svc.h +++ b/include/linux/sunrpc/svc.h @@ -222,7 +222,7 @@ static inline __be32 svc_getu32(struct kvec *iov) static inline void svc_ungetu32(struct kvec *iov) { - __be32 *vp = (__be32 *)iov->iov_base; + __be32 *vp = iov->iov_base; iov->iov_base = (void *)(vp - 1); iov->iov_len += sizeof(*vp); } -- 2.18.2