Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp203344pxm; Fri, 25 Feb 2022 06:34:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJyGtzxgnm2fr/yVC6j4p/mJkh5vrmcPJaBsRmvB/07VIfHS/qVHXacSJtCDbcfPTzM811JN X-Received: by 2002:aa7:d7da:0:b0:40f:f16f:dc25 with SMTP id e26-20020aa7d7da000000b0040ff16fdc25mr7168651eds.17.1645799665344; Fri, 25 Feb 2022 06:34:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645799665; cv=none; d=google.com; s=arc-20160816; b=ClKTwC4A5m2RTraWnivZv+mebleYzJ4/QJqgs41rysRU7V6yoYCJoZi8u5Axd2Vgsx SlRwdCyoJ5mCawzA6SArZQxC2WD5XkncaKL9oPRcumweJd5YbCzJeYCFW1xKa/Bfe7Oh 56Q/aUVLmFCtn4YCouIsTXgx2VbvP/3GNXd4vlTMx8mFSZ1LM2nyg1bxvO+FDtKl5bO5 i6y2pycks5Rsevb3ojOJel97+68xgkQlhYSD4E6rmcbzBtexjk8mpN7l0i449BDnqLZ4 ylXf9ZBhHCileRwxC+/5plR++iQArpxFzWoNMtBVNadjMbSA8C+ILjbFk0NSHBTAvTSD iyfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=zKOfAvnqkSVjtLddbPIRaowNmYwMRO0+6Xlv3bNwIpk=; b=ytbyGdEk1sHwCz18N6NGx2DWt3LZiBoZOjFn2/wcOxfR6ebzyzTVNwTxa51RfAw7WC yfX1wCOrjSXDEuUPBGUnpspnNgRvFlfEklMTy2ybs5JHEMc6D99xIo3wAHXcqFRK6k1K Fjhmab6ScCtcQqPBIQb83ABf/xt/Cy5YIiNKkrVvdiMMdfsQLuX9noS1ZfmoF3GXH2CP KK5bduJTvoK4I4smvkEZWodJNn4eMcDIX+5QH1v3j17sNCboa3Rg9ctaq1tWHv3xEFjn 07EzPIN7a6RhUgUL/ylth8KQTpFH3VLqoZvFSqrrNdsp1+fJg2l4msNp+FmpXiQtDs6v TeNA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i24-20020a0564020f1800b00412edab2e3dsi2018289eda.201.2022.02.25.06.34.01; Fri, 25 Feb 2022 06:34:25 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238261AbiBYHtT (ORCPT + 99 others); Fri, 25 Feb 2022 02:49:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235373AbiBYHtS (ORCPT ); Fri, 25 Feb 2022 02:49:18 -0500 Received: from out30-43.freemail.mail.aliyun.com (out30-43.freemail.mail.aliyun.com [115.124.30.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3EDA1AAFD3; Thu, 24 Feb 2022 23:48:46 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R151e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04400;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0V5RxXOB_1645775320; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0V5RxXOB_1645775320) by smtp.aliyun-inc.com(127.0.0.1); Fri, 25 Feb 2022 15:48:44 +0800 From: Jiapeng Chong To: hdegoede@redhat.com Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH v2] vboxsf: Remove redundant assignment to out_len Date: Fri, 25 Feb 2022 15:48:38 +0800 Message-Id: <20220225074838.553-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 Clean up the following clang-w1 warning: fs/vboxsf/utils.c:442:9: warning: variable 'out_len' set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- Changes in v2: -Delete " out_len += nb;". fs/vboxsf/utils.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/fs/vboxsf/utils.c b/fs/vboxsf/utils.c index e1db0f3f7e5e..7f2838c42dcc 100644 --- a/fs/vboxsf/utils.c +++ b/fs/vboxsf/utils.c @@ -439,7 +439,6 @@ int vboxsf_nlscpy(struct vboxsf_sbi *sbi, char *name, size_t name_bound_len, { const char *in; char *out; - size_t out_len; size_t out_bound_len; size_t in_bound_len; @@ -447,7 +446,6 @@ int vboxsf_nlscpy(struct vboxsf_sbi *sbi, char *name, size_t name_bound_len, in_bound_len = utf8_len; out = name; - out_len = 0; /* Reserve space for terminating 0 */ out_bound_len = name_bound_len - 1; @@ -468,7 +466,6 @@ int vboxsf_nlscpy(struct vboxsf_sbi *sbi, char *name, size_t name_bound_len, out += nb; out_bound_len -= nb; - out_len += nb; } *out = 0; -- 2.20.1.7.g153144c